the instance string might contain reserved characters
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 3 Oct 2010 04:00:16 +0000 (00:00 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 3 Oct 2010 04:00:16 +0000 (00:00 -0400)
horde/lib/Block/twitter_timeline.php

index 9d360d7..3c2695f 100644 (file)
@@ -142,7 +142,7 @@ class Horde_Block_Horde_twitter_timeline extends Horde_Block
         Horde::addScriptFile('twitterclient.js');
         $script = <<<EOT
             var Horde = window.Horde || {};
-            Horde.twitter{$instance} = new Horde_Twitter({
+            Horde['twitter{$instance}'] = new Horde_Twitter({
                instanceid: '{$instance}',
                getmore: '{$instance}_getmore',
                input: '{$instance}_newStatus',