From 096c9ceca199c0fa1da9217aa73557a5dccf4d77 Mon Sep 17 00:00:00 2001 From: justnx Date: Tue, 17 Sep 2013 12:52:14 +0200 Subject: [PATCH] Fix: Only variables should be passed by reference --- app/www/admin/src/class.XMLNavigation.php | 24 +++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/www/admin/src/class.XMLNavigation.php b/app/www/admin/src/class.XMLNavigation.php index bd3d73c..681bb8e 100644 --- a/app/www/admin/src/class.XMLNavigation.php +++ b/app/www/admin/src/class.XMLNavigation.php @@ -74,13 +74,13 @@ class XMLNavigation extends Core * * @var object */ - private $DB; - - /** - * Crumb separator - * - * @var object - */ + private $DB; + + /** + * Crumb separator + * + * @var object + */ private $CrumbSeparator; /** @@ -99,9 +99,9 @@ function __construct($search = false) $this->XML->loadXML(""); $this->XML->formatOutput = true; - $this->XPath = new DOMXPath($this->XML); - - // Default separator + $this->XPath = new DOMXPath($this->XML); + + // Default separator $this->CrumbSeparator = " » "; } @@ -111,7 +111,7 @@ function __construct($search = false) * @param DOMNode $DOMPart * @param DOMNode $menu_part */ - public function AddNode($DOMPart, &$menu_part) + public function AddNode($DOMPart, $menu_part) { foreach ($DOMPart->childNodes as $node) { @@ -278,7 +278,7 @@ public function AppendNodesFromArray($nodes, $parentid) * @access protected * @return void */ - protected function GetNodes(&$root) + protected function GetNodes($root) { foreach ($root->childNodes as $node) {