summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
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.' )");