mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
BUGFIX: fixed homepage storing current as module
This commit is contained in:
parent
8937d56547
commit
7546e9429a
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user