From edad8581bb6ec2cb0e198f1cc5e415ce526147b7 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Tue, 27 Dec 2011 22:16:29 +0100 Subject: Article::by_multi improved and frontend modifications. * Article::by_multi now has more criterias and can perform sorting, paging and limiting. Also only generates full articles when needed. * In the frontend there are now some "hidden" __obj STE variables, so some objects do not need to be created multiple times. --- ratatoeskr/backend.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ratatoeskr/backend.php') diff --git a/ratatoeskr/backend.php b/ratatoeskr/backend.php index 365fe7a..0316589 100644 --- a/ratatoeskr/backend.php +++ b/ratatoeskr/backend.php @@ -14,7 +14,7 @@ require_once(dirname(__FILE__) . "/sys/pwhash.php"); require_once(dirname(__FILE__) . "/sys/textprocessors.php"); require_once(dirname(__FILE__) . "/languages.php"); -$admin_grp = Group::by_name("admins"); +$admin_grp = NULL; /* Mass creation of tags. */ function maketags($tagnames, $lang) @@ -65,6 +65,9 @@ $backend_subactions = url_action_subactions(array( { global $ratatoeskr_settings, $admin_grp, $ste, $languages; + if($admin_grp === NULL) + $admin_grp = Group::by_name("admins"); + $ste->vars["all_languages"] = array(); $ste->vars["all_langcodes"] = array(); foreach($languages as $code => $data) -- cgit v1.2.3-70-g09d2