]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch 'testing' into 0.9.x
authorBrion Vibber <brion@pobox.com>
Tue, 16 Feb 2010 17:25:09 +0000 (09:25 -0800)
committerBrion Vibber <brion@pobox.com>
Tue, 16 Feb 2010 17:25:09 +0000 (09:25 -0800)
Conflicts:
lib/iomaster.php

1  2 
classes/File.php
lib/api.php
lib/default.php
lib/iomaster.php
lib/queuemanager.php
lib/util.php

Simple merge
diff --cc lib/api.php
Simple merge
diff --cc lib/default.php
Simple merge
Simple merge
index 64bb52e106ee7289bf03934ebb32b145f33315d5,8f8c8f133ffcea17ad51f4f6c8229e5704779e49..710829e497902f5f61731298b448f6ae39e37b62
@@@ -212,15 -213,13 +213,15 @@@ abstract class QueueManager extends IoM
      {
          if (isset($this->handlers[$queue])) {
              $class = $this->handlers[$queue];
 -            if (class_exists($class)) {
 +            if(is_object($class)) {
 +                return $class;
 +            } else if (class_exists($class)) {
                  return new $class();
              } else {
-                 common_log(LOG_ERR, "Nonexistent handler class '$class' for queue '$queue'");
+                 $this->_log(LOG_ERR, "Nonexistent handler class '$class' for queue '$queue'");
              }
          } else {
-             common_log(LOG_ERR, "Requested handler for unkown queue '$queue'");
+             $this->_log(LOG_ERR, "Requested handler for unkown queue '$queue'");
          }
          return null;
      }
       * Only registered transports will be reliably picked up!
       *
       * @param string $transport
 -     * @param string $class
 +     * @param string $class class name or object instance
       * @param string $group
       */
-     public function connect($transport, $class, $group='queuedaemon')
+     public function connect($transport, $class, $group='main')
      {
          $this->handlers[$transport] = $class;
          $this->groups[$group][$transport] = $class;
diff --cc lib/util.php
Simple merge