修正几处已知bug
This commit is contained in:
@@ -14,7 +14,7 @@ class Upload extends Admin {
|
|||||||
|
|
||||||
public function _empty() {
|
public function _empty() {
|
||||||
$controller = controller('common/Upload');
|
$controller = controller('common/Upload');
|
||||||
$action = ACTION_NAME;
|
$action = $this->request->action();
|
||||||
return $controller->$action();
|
return $controller->$action();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -175,7 +175,7 @@ class Admin extends Base {
|
|||||||
$models = AuthGroup::getAuthModels(session('user_auth.uid'));
|
$models = AuthGroup::getAuthModels(session('user_auth.uid'));
|
||||||
foreach ($list as $key => $value) {
|
foreach ($list as $key => $value) {
|
||||||
if (IS_ROOT || in_array($value['id'], $models)) {
|
if (IS_ROOT || in_array($value['id'], $models)) {
|
||||||
if ('admin/content/index' == $this->url && input('model_id') == $value['id']) {
|
if ('admin/content/index' == $this->request->path() && input('model_id') == $value['id']) {
|
||||||
$value['style'] = "active";
|
$value['style'] = "active";
|
||||||
}
|
}
|
||||||
$value['url'] = "admin/content/index?model_id=" . $value['id'];
|
$value['url'] = "admin/content/index?model_id=" . $value['id'];
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
<!-- 实例化编辑器代码 -->
|
<!-- 实例化编辑器代码 -->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var ue = UE.getEditor('{$field}', {
|
var ue = UE.getEditor('{$field}', {
|
||||||
serverUrl : "{:url(MODULE_NAME.'/upload/ueditor')}"
|
serverUrl : "{:url(request()->module().'/upload/ueditor')}"
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
Reference in New Issue
Block a user