From d910565ba5a5073feafb273159906456772ff1d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 2 Dec 2009 11:06:16 +0000 Subject: [PATCH] Clear methods due to XML rewrites (see shipsimu project) --- .../main/request/web/class_HttpRequest.php | 1 + .../menu/class_MenuTemplateEngine.php | 25 +++---------------- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/inc/classes/main/request/web/class_HttpRequest.php b/inc/classes/main/request/web/class_HttpRequest.php index 39791150..1ba80d75 100644 --- a/inc/classes/main/request/web/class_HttpRequest.php +++ b/inc/classes/main/request/web/class_HttpRequest.php @@ -7,6 +7,7 @@ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org + * @todo Move out the cookie part to a seperate class, e.g. Cookie * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/inc/classes/main/template/menu/class_MenuTemplateEngine.php b/inc/classes/main/template/menu/class_MenuTemplateEngine.php index 84e94e21..6584ab19 100644 --- a/inc/classes/main/template/menu/class_MenuTemplateEngine.php +++ b/inc/classes/main/template/menu/class_MenuTemplateEngine.php @@ -461,22 +461,10 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla /** * Starts the menu property 'title' * - * @param $id Id of the menu - * @param $class The title to add to the menu * @return void */ - private function startTitle ($id, $class) { - // Set id as current - $this->curr['id'] = $id; - - // Load the title template for this page - $this->getTemplateInstance()->loadCodeTemplate('menu_title_' . $id . '_start'); - - // Set the variable group to page - $this->setVariableGroup('menu'); - - // Set its content in this template instance - $this->assignVariable('title_start_' . $this->curr['id'], $this->getTemplateInstance()->getRawTemplateData()); + private function startTitle () { + $this->partialStub('Cleared due to XML rewrite.'); } /** @@ -485,14 +473,7 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla * @return void */ private function finishTitle () { - // Load the title template for this page - $this->getTemplateInstance()->loadCodeTemplate('menu_title_' . $this->curr['id'] . '_end'); - - // Set the variable group to page - $this->setVariableGroup('menu'); - - // Set its content in this template instance - $this->assignVariable('title_end_' . $this->curr['id'], $this->getTemplateInstance()->getRawTemplateData()); + $this->partialStub('Cleared due to XML rewrite.'); } /** -- 2.39.5