check if repository url is set

This commit is contained in:
Uwe Steinmann 2018-03-27 14:04:45 +02:00
parent 1a8a0c3621
commit ad5c4fc332

View File

@ -131,7 +131,6 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style {
$version = $this->params['version'];
$extmgr = $this->params['extmgr'];
$currenttab = $this->params['currenttab'];
$reposurl = $this->params['reposurl'];
$this->htmlStartPage(getMLText("admin_tools"));
$this->globalNavigation();
@ -234,6 +233,7 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style {
<div class="tab-pane <?php if($currenttab == 'repository') echo 'active'; ?>" id="repository">
<?php
if($extmgr->getRepositoryUrl()) {
echo "<table class=\"table _table-condensed\">\n";
print "<thead>\n<tr>\n";
print "<th></th>\n";
@ -282,7 +282,10 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style {
<input type="hidden" name="forceupdate" value="1" />
<button type="submit" class="btn btn-delete"><i class="icon-refresh"></i> <?= getMLText('force_update')?></button>
</form>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>