Avoid undefined backupable mods to be exported
This commit is contained in:
@@ -22,7 +22,8 @@
|
||||
//Check module info
|
||||
$var = "backup_".$modname;
|
||||
if (!isset($$var)) {
|
||||
$$var = 1;
|
||||
//Every undefined backup_XXXX isn't exported
|
||||
$$var = 0;
|
||||
}
|
||||
//Now stores all the mods preferences into an array into preferences
|
||||
$preferences->mods[$modname]->backup = $$var;
|
||||
|
||||
+1
-1
@@ -206,7 +206,7 @@
|
||||
global $CFG;
|
||||
|
||||
//Change this if you want !!
|
||||
$days = 1;
|
||||
$days = 2;
|
||||
//End change this
|
||||
$seconds = $days * 24 * 60 * 60;
|
||||
$delete_from = time()-$seconds;
|
||||
|
||||
Reference in New Issue
Block a user