From 8cf7947f15de6d78d75c24c4e7c43c309ae84b46 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Thu, 27 Dec 2018 13:07:31 +0000 Subject: [PATCH] move function into the only place it is used --- lib/smarty.inc.php | 10 ---------- public/list-virtual.php | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) 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: */