diff --git a/lib/omb.php b/lib/omb.php
index 0566701ff1..cd6d6e1b25 100644
--- a/lib/omb.php
+++ b/lib/omb.php
@@ -87,7 +87,7 @@ function omb_broadcast_notice($notice)
common_debug('Posting to ' . $rp->postnoticeurl, __FILE__);
/* Post notice. */
- $service = new Laconica_OMB_Service_Consumer(
+ $service = new StatusNet_OMB_Service_Consumer(
array(OMB_ENDPOINT_POSTNOTICE => $rp->postnoticeurl));
try {
$service->setToken($rp->token, $rp->secret);
diff --git a/lib/unqueuemanager.php b/lib/unqueuemanager.php
index cef9a65880..72dbc4eede 100644
--- a/lib/unqueuemanager.php
+++ b/lib/unqueuemanager.php
@@ -66,7 +66,7 @@ class UnQueueManager
break;
default:
if (Event::handle('UnqueueHandleNotice', array(&$notice, $queue))) {
- throw ServerException("UnQueueManager: Unknown queue: $queue");
+ throw new ServerException("UnQueueManager: Unknown queue: $queue");
}
}
}
diff --git a/lib/util.php b/lib/util.php
index e641afd4db..55ded7dd4e 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -906,7 +906,6 @@ function common_broadcast_notice($notice, $remote=false)
function common_enqueue_notice($notice)
{
static $localTransports = array('omb',
- 'twitter',
'facebook',
'ping');
diff --git a/tests/URLDetectionTest.php b/tests/URLDetectionTest.php
index 45203bf6e3..0cc03ccce7 100644
--- a/tests/URLDetectionTest.php
+++ b/tests/URLDetectionTest.php
@@ -47,7 +47,9 @@ class URLDetectionTest extends PHPUnit_Framework_TestCase
array('127.0.0.1/\'test',
'127.0.0.1/\'test'),
array('127.0.0.1/"test',
- '127.0.0.1/"test'),
+ '127.0.0.1/"test'),
+ array('127.0.0.1/test"test',
+ '127.0.0.1/test"test'),
array('127.0.0.1/-test',
'127.0.0.1/-test'),
array('127.0.0.1/_test',
@@ -170,6 +172,8 @@ class URLDetectionTest extends PHPUnit_Framework_TestCase
'\'http://example.com\''),
array('"http://example.com"',
'"http://example.com"'),
+ array('"http://example.com/"',
+ '"http://example.com/"'),
array('http://example.com',
'http://example.com'),
array('(http://example.com)',