BUGFIX: fixed homepage storing current as module

This commit is contained in:
Will Rossiter 2010-10-22 01:52:35 +00:00
parent 8937d56547
commit 7546e9429a

View File

@ -123,7 +123,7 @@ class DocumentationViewer extends Controller {
return $this->response; 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 // its a version number first in the form 2.4/en/sapphire
$this->version = $firstParam; $this->version = $firstParam;
$this->lang = $secondParam; $this->lang = $secondParam;
@ -137,7 +137,7 @@ class DocumentationViewer extends Controller {
$this->module = $secondParam; $this->module = $secondParam;
} }
} }
// 'current' version mapping // 'current' version mapping
$module = DocumentationService::is_registered_module($this->module, null, $this->getLang()); $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'), // 'Title' => ($this->Version) ? $this->Version : _t('DocumentationViewer.DOCUMENTATION', 'Documentation'),
// 'Link' => $this->Link() // 'Link' => $this->Link()
// ))); // )));
if($pages) { if($pages) {
$path = array(); $path = array();