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