|
@@ -94,14 +94,14 @@ final class Base
|
|
|
$class_name = $_GET['act'].'Control';
|
|
|
|
|
|
if (!file_exists($act_file) || !@require_once($act_file)) {
|
|
|
- throw_exception("Base Error: access file isn't exists!");
|
|
|
+ throw new Exception("Base Error: access file isn't exists!");
|
|
|
}
|
|
|
|
|
|
if(class_exists($class_name)) {
|
|
|
$main = new $class_name();
|
|
|
} else {
|
|
|
$error = "Base Error: class $class_name isn't exists!";
|
|
|
- throw_exception($error);
|
|
|
+ throw new Exception($error);
|
|
|
}
|
|
|
|
|
|
if(!empty($main))
|
|
@@ -113,11 +113,11 @@ final class Base
|
|
|
$main->indexOp();
|
|
|
} else {
|
|
|
$error = "Base Error: function $function not in $class_name!";
|
|
|
- throw_exception($error);
|
|
|
+ throw new Exception($error);
|
|
|
}
|
|
|
} else {
|
|
|
$error = "Base Error: class $class_name isn't exists!";
|
|
|
- throw_exception($error);
|
|
|
+ throw new Exception($error);
|
|
|
}
|
|
|
}
|
|
|
|