summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--import.all.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/import.all.php b/import.all.php
index f77760b..aaa4b27 100644
--- a/import.all.php
+++ b/import.all.php
@@ -2,17 +2,19 @@
require_once 'header.php';
- $sql = "INSERT INTO znurt (action) VALUES ('start_import');";
- $db->query($sql);
-
ini_set('memory_limit', -1);
$verbose = true;
- if(in_array("-cron", $argv))
+ if(in_array("-cron", $argv)) {
$verbose = false;
+ $cron = true;
+ }
-// print_r($argv); die;
+ if($cron) {
+ $sql = "INSERT INTO znurt (action) VALUES ('start_import');";
+ $db->query($sql);
+ }
$base = true;
$packages = true;