diff --git a/api/api_system.php b/api/api_system.php index 1fcd7c9..b8efcf7 100644 --- a/api/api_system.php +++ b/api/api_system.php @@ -12,12 +12,8 @@ class api_system extends api_login{ public static function call_files($cat,$id = null){ return \SYSTEM\FILES\files::get($cat, $id, true);} - public static function call_pagestates($group){ + public static function call_pages($group){ return \SYSTEM\PAGE\State::get($group);} - public static function call_pagestates_flag_js($group){ - return \SYSTEM\PAGE\State::get_js($group);} - public static function call_pagestates_flag_css($group){ - return \SYSTEM\PAGE\State::get_css($group);} public static function static__lang($lang){ \SYSTEM\locale::set($lang);} diff --git a/dbd/qq/SYS_PAGESTATES_GROUP.php b/dbd/qq/SYS_PAGESTATES_GROUP.php deleted file mode 100644 index ca52066..0000000 --- a/dbd/qq/SYS_PAGESTATES_GROUP.php +++ /dev/null @@ -1,15 +0,0 @@ -next()){ + $row['css'] = $row['js'] = array(); + if(\method_exists($row['php_class'], 'css') && \is_callable($row['php_class'].'::css')){ + $row['css'] = array_merge($row['css'], call_user_func($row['php_class'].'::css'));} + if(\method_exists($row['php_class'], 'js') && \is_callable($row['php_class'].'::js')){ + $row['js'] = array_merge($row['js'], call_user_func($row['php_class'].'::js'));} + $result[] = $row;} + return \SYSTEM\LOG\JsonResult::toString($result);} } \ No newline at end of file