Implemented linker - class for admin_index.php -> change_[theme|language|password], more to come

Signed-off-by: Florian Aders (EleRas) <eleras@froxlor.org>
This commit is contained in:
Florian Aders (EleRas)
2011-06-13 17:21:02 +02:00
parent 68e31962bc
commit 6ebd6db87f
9 changed files with 29 additions and 15 deletions

View File

@@ -114,7 +114,6 @@ class linker
$link .= '/';
}
$link .= $this->filename;
# Overwrite $this->args with parameters of this function (if necessary)
if(func_num_args() == 1 && is_array(func_get_arg(0)))
@@ -122,6 +121,17 @@ class linker
$this->args = array_merge($this->args, func_get_arg(0));
}
# temporary until frontcontroller exists
# We got a section in the URL -> add area and section as filename
if (isset($this->args['section']))
{
$link .= AREA . '_' . $this->args['section'] . '.php';
}
else
{
$link .= $this->filename;
}
# Let's see if we are done (no arguments in query)
if (count($this->args) == 0)
{