Commits

Anonymous committed 75d86cc

_isExtendsRbacController 函数内部变量名修改。

  • Participants
  • Parent commits 5ed8a38

Comments (0)

Files changed (1)

controllers/DefaultController.php

      * @return boolean
      */
     private function _isExtendsRbacController($controller) {
-        $ctl = basename(str_replace(".php", "", $controller));
-        if (!class_exists($ctl, false)) {
+        $class = basename(str_replace(".php", "", $controller));
+        if (!class_exists($class, false)) {
             include_once $controller;
         }
 
-        return (new $ctl($ctl) instanceof Controller) ? true : false;
+        return (new $class($class) instanceof Controller) ? true : false;
     }
 
 }