diff --git a/lib/classes/output/class.linker.php b/lib/classes/output/class.linker.php index b87a6332..d34aa311 100644 --- a/lib/classes/output/class.linker.php +++ b/lib/classes/output/class.linker.php @@ -35,6 +35,7 @@ class linker $this->hostname = $hostname; $this->port = $port; $this->filename = $file; + # @TODO: Remove this $this->args['s'] = $sessionid; } @@ -72,6 +73,7 @@ class linker { # Just resetting the array # Until the sessionid can be removed: save it + # @TODO: Remove this $this->args = array('s' => $this->args['s']); } @@ -122,10 +124,12 @@ class linker } # temporary until frontcontroller exists - # We got a section in the URL -> add area and section as filename + # We got a section in the URL -> morph AREA and section into filename + # @TODO: Remove this if (isset($this->args['section'])) { $link .= AREA . '_' . $this->args['section'] . '.php'; + unset($this->args['section']); } else { @@ -144,10 +148,10 @@ class linker # Loop through arguments and add them to the link foreach ($this->args as $key => $value) { - # For all but the first argument, prepend "&" + # For all but the first argument, prepend "&" if (substr($link, -1) != "?") { - $link .= "&"; + $link .= "&"; } # Encode parameters and add them to the link diff --git a/templates/Classic/admin/admins/admins.tpl b/templates/Classic/admin/admins/admins.tpl index 58edf4a9..48449c00 100644 --- a/templates/Classic/admin/admins/admins.tpl +++ b/templates/Classic/admin/admins/admins.tpl @@ -1,5 +1,5 @@ $header -
diff --git a/templates/Classic/admin/admins/admins_add.tpl b/templates/Classic/admin/admins/admins_add.tpl index 540ea66d..14ba176b 100644 --- a/templates/Classic/admin/admins/admins_add.tpl +++ b/templates/Classic/admin/admins/admins_add.tpl @@ -1,5 +1,5 @@ $header -