summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-14 09:52:56 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-14 09:52:56 +0100
commit68347720e62934628a466945696d9218c45cc42d (patch)
tree9a789c756ef220078f9c48960b8e2390214463e5 /admin
parentf0e7da86b8701c3d71d02ed7aa5db968025592a5 (diff)
downloadquota-master.tar.gz
quota-master.tar.bz2
quota-master.zip
php-cs-fixer tidies to php8.5 standardsHEADmaster
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'admin')
-rwxr-xr-xadmin/admin_quota_inc.php4
-rwxr-xr-xadmin/pump_quota_inc.php1
2 files changed, 2 insertions, 3 deletions
diff --git a/admin/admin_quota_inc.php b/admin/admin_quota_inc.php
index 22a3d87..47abee5 100755
--- a/admin/admin_quota_inc.php
+++ b/admin/admin_quota_inc.php
@@ -22,10 +22,10 @@ if( !empty( $_REQUEST['savequota'] ) ) {
if( $gQuota->store( $_REQUEST ) ) {
header( 'Location: '.KERNEL_PKG_URL.'admin/index.php?page=quota' );
die;
- } else {
+ }
$saveError = TRUE;
$gBitSmarty->assign( 'errors', $gQuota->mErrors );
- }
+
} elseif( !empty( $_REQUEST['assignquota'] ) ) {
foreach( array_keys( $_REQUEST ) as $key ) {
if( preg_match( '/^quota_group_([-0-9]*)/', $key, $match ) ) {
diff --git a/admin/pump_quota_inc.php b/admin/pump_quota_inc.php
index d76e1d3..07ff359 100755
--- a/admin/pump_quota_inc.php
+++ b/admin/pump_quota_inc.php
@@ -10,7 +10,6 @@
*/
use Bitweaver\Quota\LibertyQuota;
-
$quota = new LibertyQuota();
$quota->mDb->Execute("INSERT INTO `".BIT_DB_PREFIX."quotas` ( `quota_id`, `disk_usage`, `monthly_transfer`, `title`, `description` ) VALUES ('1', 2000000, 20000000, 'Free Trial', 'A little space to try out site features' )");
$quota->mDb->Execute("INSERT INTO `".BIT_DB_PREFIX."quotas` ( `quota_id`, `disk_usage`, `monthly_transfer`, `title`, `description` ) VALUES ('2', 10000000, 100000000, 'Site Supporters', 'Extra space for site supporters.' )");