aboutsummaryrefslogtreecommitdiffstats
path: root/include/queue.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2012-10-23 21:26:12 +1100
committerMike Macgirvin <mike@macgirvin.com>2012-10-23 21:26:12 +1100
commit7acba41dc67e85fe889f7213c9ba0ba158983f81 (patch)
tree08ab0d31599b17a58914a351da71c651937e7f71 /include/queue.php
parent672da80282d4a99adb12fc09bde89af656f0b13b (diff)
downloadvolse-hubzilla-7acba41dc67e85fe889f7213c9ba0ba158983f81.tar.gz
volse-hubzilla-7acba41dc67e85fe889f7213c9ba0ba158983f81.tar.bz2
volse-hubzilla-7acba41dc67e85fe889f7213c9ba0ba158983f81.zip
more cleanup
Diffstat (limited to 'include/queue.php')
-rw-r--r--include/queue.php30
1 files changed, 5 insertions, 25 deletions
diff --git a/include/queue.php b/include/queue.php
index 0bd12762f..a45d3ed63 100644
--- a/include/queue.php
+++ b/include/queue.php
@@ -1,36 +1,18 @@
<?php
require_once("boot.php");
+require_once('include/cli_startup.php');
require_once('include/queue_fn.php');
function queue_run($argv, $argc){
- global $a, $db;
-
- if(is_null($a)){
- $a = new App;
- }
-
- if(is_null($db)){
- @include(".htconfig.php");
- require_once("dba.php");
- $db = new dba($db_host, $db_user, $db_pass, $db_data);
- unset($db_host, $db_user, $db_pass, $db_data);
- };
+ cli_startup();
+ global $a;
- require_once("session.php");
- require_once("datetime.php");
require_once('include/items.php');
require_once('include/bbcode.php');
- load_config('config');
- load_config('system');
-
- $a->set_baseurl(get_config('system','url'));
-
- load_hooks();
-
- if($argc > 1)
- $queue_id = intval($argv[1]);
+ if(argc() > 1)
+ $queue_id = intval(argv(1));
else
$queue_id = 0;
@@ -83,8 +65,6 @@ function queue_run($argv, $argc){
// delivery loop
- require_once('include/salmon.php');
-
foreach($r as $q_item) {
// queue_predeliver hooks may have changed the queue db details,