diff options
| author | lsces <lester@lsces.co.uk> | 2016-02-07 22:08:06 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2016-02-07 22:08:06 +0000 |
| commit | 916761132c99b0ec5e08f4f306d87e223d45181d (patch) | |
| tree | ee406de43a377c51b5daa0dd7a45ab9c98365c69 | |
| parent | d1d16bb3af6be46c6c38f0cba608e3f84f024d1e (diff) | |
| download | quota-916761132c99b0ec5e08f4f306d87e223d45181d.tar.gz quota-916761132c99b0ec5e08f4f306d87e223d45181d.tar.bz2 quota-916761132c99b0ec5e08f4f306d87e223d45181d.zip | |
Move from Smarty2 to Smarty3 function style
| -rw-r--r-- | admin/admin_quota_inc.php | 10 | ||||
| -rw-r--r-- | quota_inc.php | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/admin/admin_quota_inc.php b/admin/admin_quota_inc.php index bbf8106..b6909ea 100644 --- a/admin/admin_quota_inc.php +++ b/admin/admin_quota_inc.php @@ -24,7 +24,7 @@ if( !empty( $_REQUEST['savequota'] ) ) { die; } else { $saveError = TRUE; - $gBitSmarty->assign_by_ref( 'errors', $gQuota->mErrors ); + $gBitSmarty->assignByRef( 'errors', $gQuota->mErrors ); } } elseif( !empty( $_REQUEST['assignquota'] ) ) { foreach( array_keys( $_REQUEST ) as $key ) { @@ -37,16 +37,16 @@ if( !empty( $_REQUEST['savequota'] ) ) { } $gQuota->load(); if( $gQuota->isValid() || isset( $_REQUEST['newquota'] ) || !empty( $saveError ) ) { - $gBitSmarty->assign_by_ref('gQuota', $gQuota); + $gBitSmarty->assignByRef('gQuota', $gQuota); } else { $quotas = $gQuota->getList(); $systemGroups = $gQuota->getQuotaGroups(); - $gBitSmarty->assign_by_ref('systemGroups', $systemGroups ); + $gBitSmarty->assignByRef('systemGroups', $systemGroups ); foreach( array_keys( $systemGroups ) as $groupId ) { $groupQuota[$groupId] = $gQuota->getQuotaMenu( 'quota_group_'.$groupId, $systemGroups[$groupId]['quota_id'] ); } - $gBitSmarty->assign_by_ref('groupQuota', $groupQuota ); - $gBitSmarty->assign_by_ref('quotaList', $quotas); + $gBitSmarty->assignByRef('groupQuota', $groupQuota ); + $gBitSmarty->assignByRef('quotaList', $quotas); } ?> diff --git a/quota_inc.php b/quota_inc.php index b78f08b..f43f2bc 100644 --- a/quota_inc.php +++ b/quota_inc.php @@ -32,11 +32,11 @@ if( $diskQuota != 0 ) { if( $quotaPercent > 100 ) { $errors['disk_quota'] = "You are over your disk quota."; - $gBitSmarty->assign_by_ref( 'errors', $errors ); + $gBitSmarty->assignByRef( 'errors', $errors ); $quotaPercent = 100; } $gBitSmarty->assign( 'usage', round( ($diskUsage / 1000000), 2 ) ); $gBitSmarty->assign( 'quota', round( ($diskQuota / 1000000), 2 ) ); -$gBitSmarty->assign_by_ref( 'quotaPercent', $quotaPercent ); +$gBitSmarty->assignByRef( 'quotaPercent', $quotaPercent ); ?> |
