diff --git a/lib/smarty.inc.php b/lib/smarty.inc.php index 3d90e1c2..705ad5b0 100644 --- a/lib/smarty.inc.php +++ b/lib/smarty.inc.php @@ -94,14 +94,4 @@ $smarty->assign('version', $version); $smarty->assign('boolconf_alias_domain', Config::bool('alias_domain')); $smarty->assign('authentication_has_role', array('global_admin' => authentication_has_role('global-admin'), 'admin' => authentication_has_role('admin'), 'user' => authentication_has_role('user'))); -function eval_size($aSize) { - if ($aSize == 0) { - $ret_val = Config::Lang('pOverview_unlimited'); - } elseif ($aSize < 0) { - $ret_val = Config::Lang('pOverview_disabled'); - } else { - $ret_val = $aSize; - } - return $ret_val; -} /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */ diff --git a/public/list-virtual.php b/public/list-virtual.php index cffc62e8..b15875b3 100644 --- a/public/list-virtual.php +++ b/public/list-virtual.php @@ -499,4 +499,14 @@ $smarty->assign('tab', $_SESSION ['tab']); $smarty->assign('smarty_template', 'list-virtual'); $smarty->display('index.tpl'); +function eval_size($aSize) { + if ($aSize == 0) { + $ret_val = Config::Lang('pOverview_unlimited'); + } elseif ($aSize < 0) { + $ret_val = Config::Lang('pOverview_disabled'); + } else { + $ret_val = $aSize; + } + return $ret_val; +} /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */