aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/backend.php
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2012-06-09 12:33:05 +0200
committerKevin Chabowski <kevin@kch42.de>2012-06-09 12:33:05 +0200
commit1454fbb1633db4dc44049bde6cc9052bccc4db0d (patch)
tree5f6f66e5085382693f0acaa245aee7b6b8136d99 /ratatoeskr/backend.php
parent1dda842bb80414c6d373e7fb41c63d4d31e035b6 (diff)
downloadratatoeskr-cms-1454fbb1633db4dc44049bde6cc9052bccc4db0d.tar.gz
ratatoeskr-cms-1454fbb1633db4dc44049bde6cc9052bccc4db0d.tar.bz2
ratatoeskr-cms-1454fbb1633db4dc44049bde6cc9052bccc4db0d.zip
Moved global $admin_grp variable to models.php
Also added a loader function for this and added some documentation.
Diffstat (limited to 'ratatoeskr/backend.php')
-rw-r--r--ratatoeskr/backend.php5
1 files changed, 1 insertions, 4 deletions
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();