diff --git a/framework/base/router.class.php b/framework/base/router.class.php index 4792a335be..d700da5fc4 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -1428,7 +1428,7 @@ class baseRouter $modelLines = "getBasePath());\n"; - $modelLines .= "helper::import('$mainModelFile');\n"; + $modelLines .= "helper::import('" . str_replace($this->getBasePath(), '', $mainModelFile) . "');\n"; $modelLines .= "helper::cd();\n"; $modelLines .= "class $tmpModelClass extends $modelClass \n{\n"; diff --git a/module/common/view/datatable.html.php b/module/common/view/datatable.html.php index 4d441faa9c..8ab39192b0 100644 --- a/module/common/view/datatable.html.php +++ b/module/common/view/datatable.html.php @@ -2,7 +2,7 @@ datatable)):?>