diff options
Diffstat (limited to 'app/class/Controllerinfo.php')
-rw-r--r-- | app/class/Controllerinfo.php | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/app/class/Controllerinfo.php b/app/class/Controllerinfo.php index ab2a526..0e639e8 100644 --- a/app/class/Controllerinfo.php +++ b/app/class/Controllerinfo.php @@ -1,20 +1,20 @@ <?php namespace Wcms; + use Michelf\MarkdownExtra; class Controllerinfo extends Controller { - public function __construct($render){ + public function __construct($render) + { parent::__construct($render); } public function desktop() { - if($this->user->iseditor()) { - - if(file_exists(Model::MAN_FILE)) { - + if ($this->user->iseditor()) { + if (file_exists(Model::MAN_FILE)) { $render = new Modelrender($this->router); $htmlman = file_get_contents(Model::MAN_FILE); $htmlman = $render->rendermanual($htmlman); @@ -23,12 +23,7 @@ class Controllerinfo extends Controller $summary = $sum->sumparser(); $this->showtemplate('info', ['version' => getversion(), 'manual' => $htmlman, 'summary' => $summary]); - } } } - } - - -?>
\ No newline at end of file |