From 1454fbb1633db4dc44049bde6cc9052bccc4db0d Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sat, 9 Jun 2012 12:33:05 +0200 Subject: Moved global $admin_grp variable to models.php Also added a loader function for this and added some documentation. --- ratatoeskr/backend.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'ratatoeskr/backend.php') diff --git a/ratatoeskr/backend.php b/ratatoeskr/backend.php index be03fc7..0a33dbc 100644 --- a/ratatoeskr/backend.php +++ b/ratatoeskr/backend.php @@ -15,8 +15,6 @@ require_once(dirname(__FILE__) . "/sys/textprocessors.php"); require_once(dirname(__FILE__) . "/sys/plugin_api.php"); require_once(dirname(__FILE__) . "/languages.php"); -$admin_grp = NULL; - /* Mass creation of tags. */ function maketags($tagnames, $lang) { @@ -53,8 +51,7 @@ $backend_subactions = url_action_subactions(array( { global $ratatoeskr_settings, $admin_grp, $ste, $languages; - if($admin_grp === NULL) - $admin_grp = Group::by_name("admins"); + Group::load_admin_group(); $ste->vars["all_languages"] = array(); $ste->vars["all_langcodes"] = array(); -- cgit v1.2.3-70-g09d2