aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/backend.php
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2011-12-27 22:16:29 +0100
committerKevin Chabowski <kevin@kch42.de>2011-12-27 22:16:29 +0100
commitedad8581bb6ec2cb0e198f1cc5e415ce526147b7 (patch)
treeccf1fb19ef8da877a3e33a400db330a254857443 /ratatoeskr/backend.php
parenta2ee929485e2a55492cbc161b4270038099b26f8 (diff)
downloadratatoeskr-cms-edad8581bb6ec2cb0e198f1cc5e415ce526147b7.tar.gz
ratatoeskr-cms-edad8581bb6ec2cb0e198f1cc5e415ce526147b7.tar.bz2
ratatoeskr-cms-edad8581bb6ec2cb0e198f1cc5e415ce526147b7.zip
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.
Diffstat (limited to 'ratatoeskr/backend.php')
-rw-r--r--ratatoeskr/backend.php5
1 files changed, 4 insertions, 1 deletions
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)