This commit is contained in:
pty 2015-12-30 16:44:43 +01:00
commit 76ef40063a
3 changed files with 3 additions and 2 deletions

View File

@ -585,6 +585,7 @@
}
return $ret;
}
public function getDeletedZones($zonetype = NULL) {
$ret = array();
if (is_string($zonetype)) {

View File

@ -525,7 +525,7 @@ function menu_buttons() {
$cmasters = $user->getCommitableZones('master');
$cmc = (is_array($cmasters)) ? sizeof($cmasters) : 0;
$cslaves = intval($user->getCommitableZones('slave'));
$cslaves = $user->getCommitableZones('slave');
$csc = (is_array($cslaves)) ? sizeof($cslaves) : 0;
$commitables = $cmc + $csc;
if($commitables == 0) {

View File

@ -43,7 +43,7 @@ $smarty->assign("pagetitle", "Slave zones");
$smarty->assign("template", "slave_zoneread.tpl");
$smarty->assign("help", help("zoneread"));
$smarty->assign("menu_button", menu_buttons());
$smarty->assign("page_root", $src . "zonelist.php?");
$smarty->assign("page_root", $src . "slave_zonelist.php?");
$smarty->display("main.tpl");
?>