aboutsummaryrefslogtreecommitdiff
path: root/mod/twitter_api/start.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-11-04 22:40:06 -0400
committercash <cash.costello@gmail.com>2011-11-04 22:40:06 -0400
commit54773892f88f53231b85d08d86d11557121d9609 (patch)
treefcc3738cf8104caf4d65ca261a973458363d19f8 /mod/twitter_api/start.php
parent61a7e2e9e138ec166227794e2de96bdd8a268957 (diff)
downloadelgg-54773892f88f53231b85d08d86d11557121d9609.tar.gz
elgg-54773892f88f53231b85d08d86d11557121d9609.tar.bz2
Fixes #4059 page handlers all return nothing
Diffstat (limited to 'mod/twitter_api/start.php')
-rw-r--r--mod/twitter_api/start.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/mod/twitter_api/start.php b/mod/twitter_api/start.php
index b17643c8c..fd2ff6493 100644
--- a/mod/twitter_api/start.php
+++ b/mod/twitter_api/start.php
@@ -45,13 +45,14 @@ function twitter_api_init() {
* Handles old pg/twitterservice/ handler
*
* @param array $page
+ * @return void
*/
function twitter_api_pagehandler_deprecated($page) {
$url = elgg_get_site_url() . 'pg/twitter_api/authorize';
$msg = elgg_echo('twitter_api:deprecated_callback_url', array($url));
register_error($msg);
- return twitter_api_pagehandler($page);
+ twitter_api_pagehandler($page);
}
@@ -59,10 +60,11 @@ function twitter_api_pagehandler_deprecated($page) {
* Serves pages for twitter.
*
* @param array $page
+ * @return void
*/
function twitter_api_pagehandler($page) {
if (!isset($page[0])) {
- forward();
+ return;
}
switch ($page[0]) {
@@ -90,9 +92,6 @@ function twitter_api_pagehandler($page) {
$pages = dirname(__FILE__) . '/pages/twitter_api';
include "$pages/interstitial.php";
break;
- default:
- forward();
- break;
}
}