From 7546e9429a81ba2fc25c0811b8674432647bb519 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Fri, 22 Oct 2010 01:52:35 +0000 Subject: [PATCH] BUGFIX: fixed homepage storing current as module --- code/DocumentationViewer.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/DocumentationViewer.php b/code/DocumentationViewer.php index 132f893..14aa282 100755 --- a/code/DocumentationViewer.php +++ b/code/DocumentationViewer.php @@ -123,7 +123,7 @@ class DocumentationViewer extends Controller { return $this->response; } - else if(is_numeric($firstParam)) { + else if(is_numeric($firstParam) || $firstParam == "current") { // its a version number first in the form 2.4/en/sapphire $this->version = $firstParam; $this->lang = $secondParam; @@ -137,7 +137,7 @@ class DocumentationViewer extends Controller { $this->module = $secondParam; } } - + // 'current' version mapping $module = DocumentationService::is_registered_module($this->module, null, $this->getLang()); @@ -443,7 +443,6 @@ class DocumentationViewer extends Controller { // 'Title' => ($this->Version) ? $this->Version : _t('DocumentationViewer.DOCUMENTATION', 'Documentation'), // 'Link' => $this->Link() // ))); - if($pages) { $path = array();