BUGFIX Allowing 'trunk' and 'master' as version numbers

This commit is contained in:
Ingo Schommer 2011-02-24 17:53:44 +13:00
parent 94121f0a66
commit b1c93bd27a

View File

@ -156,7 +156,7 @@ class DocumentationViewer extends Controller {
$this->module = $firstParam;
$this->lang = $secondParam;
if(isset($thirdParam) && (is_numeric($thirdParam))) {
if(isset($thirdParam) && (is_numeric($thirdParam) || in_array($thirdParam, array('master', 'trunk')))) {
$this->version = $thirdParam;
}
else {