summaryrefslogtreecommitdiff
path: root/scripts/smsqueuehandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/smsqueuehandler.php')
-rwxr-xr-xscripts/smsqueuehandler.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/smsqueuehandler.php b/scripts/smsqueuehandler.php
index 38f2f11fe..ed6dbd2ad 100755
--- a/scripts/smsqueuehandler.php
+++ b/scripts/smsqueuehandler.php
@@ -27,6 +27,11 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
define('LACONICA', true);
+// Preset the server at the command line
+
+$server = ($argc > 2) ? $argv[2] : null;
+$path = ($argc > 3) ? $argv[3] : null;
+
require_once(INSTALLDIR . '/lib/common.php');
require_once(INSTALLDIR . '/lib/mail.php');
require_once(INSTALLDIR . '/lib/queuehandler.php');
@@ -35,7 +40,7 @@ set_error_handler('common_error_handler');
class SmsQueueHandler extends QueueHandler
{
-
+
function transport()
{
return 'sms';
@@ -51,7 +56,7 @@ class SmsQueueHandler extends QueueHandler
{
return mail_broadcast_notice_sms($notice);
}
-
+
function finish()
{
}