mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
If no versions registered for a module, don't show empty versions in template
This commit is contained in:
parent
389269936b
commit
9cf85b0c19
@ -344,6 +344,8 @@ class DocumentationViewer extends Controller {
|
|||||||
$currentVersion = $this->getVersion();
|
$currentVersion = $this->getVersion();
|
||||||
|
|
||||||
foreach($versions as $key => $version) {
|
foreach($versions as $key => $version) {
|
||||||
|
if(!$version) continue;
|
||||||
|
|
||||||
$linkingMode = ($currentVersion == $version) ? 'current' : 'link';
|
$linkingMode = ($currentVersion == $version) ? 'current' : 'link';
|
||||||
|
|
||||||
$output->push(new ArrayData(array(
|
$output->push(new ArrayData(array(
|
||||||
|
Loading…
Reference in New Issue
Block a user