Give link to the page needed to setup the account if we are going to warn about it..
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 4 Jan 2010 17:49:27 +0000 (12:49 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 4 Jan 2010 17:49:27 +0000 (12:49 -0500)
horde/lib/Block/twitter_timeline.php

index 168de7c..e94a126 100644 (file)
@@ -274,9 +274,9 @@ EOF;
             // Using OAuth but make sure the user has gotten a token
             $token = unserialize($GLOBALS['prefs']->getValue('twitter'));
             if (empty($token['key']) && empty($token['secret'])) {
-                // No token - should we allow the user to use http basic if
-                // horde is configured to use oauth?
-                throw new Horde_Exception(_("You must give Horde access to your Twitter account."));
+                // No token - try HTTP Basic Auth
+                $pref_link = Horde::link(Horde::url('services/twitter.php', true));
+                throw new Horde_Exception(sprintf(_("You have not properly connected your Twitter account with Horde. You should check your Twitter settings in your %s."), $pref_link . _("preferences") . '</a>'));
             }
 
             $consumer_key = $GLOBALS['conf']['twitter']['key'];