stanley-king 1 year ago
parent
commit
90fbbf1448
1 changed files with 6 additions and 4 deletions
  1. 6 4
      core/framework/core/base.php

+ 6 - 4
core/framework/core/base.php

@@ -183,13 +183,15 @@ final class Base
 
 		if (class_exists($class_name))
 		{
-			$main = new $class_name();
-			$function = $_GET['op'].'Op';
+            $function = $_GET['op'].'Op';
+
+            Log::record("Base::control 3 0", Log::DEBUG);
             Log::record("act={$class_name},op={$function}",Log::DEBUG);
 
-			if (method_exists($main,$function)){                       
-				$main->$function();
+			$main = new $class_name();
+			if (method_exists($main,$function)){
                 Log::record("Base::control 3 1", Log::DEBUG);
+				$main->$function();
 			} elseif (method_exists($main,'indexOp')) {
                 Log::record("Base::control 3 2", Log::DEBUG);
                 $main->indexOp();