mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
BUGFIX Allowing 'trunk' and 'master' as version numbers
This commit is contained in:
parent
94121f0a66
commit
b1c93bd27a
@ -156,7 +156,7 @@ class DocumentationViewer extends Controller {
|
|||||||
$this->module = $firstParam;
|
$this->module = $firstParam;
|
||||||
$this->lang = $secondParam;
|
$this->lang = $secondParam;
|
||||||
|
|
||||||
if(isset($thirdParam) && (is_numeric($thirdParam))) {
|
if(isset($thirdParam) && (is_numeric($thirdParam) || in_array($thirdParam, array('master', 'trunk')))) {
|
||||||
$this->version = $thirdParam;
|
$this->version = $thirdParam;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user