summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-10-05 16:13:07 -0700
committerZach Copley <zach@status.net>2010-10-06 13:40:01 -0700
commit83566f014c378bd1b6ebad936e98e4e76b3b731b (patch)
tree127d413db5f94f4dfc6866d160acab54aebeddfa /lib
parent30537700786967f8fd3c91ff3a7b5fc1acf09fe8 (diff)
Fix bad reference
Diffstat (limited to 'lib')
-rw-r--r--lib/apioauth.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/apioauth.php b/lib/apioauth.php
index 3f71de0c3..6a9ab6377 100644
--- a/lib/apioauth.php
+++ b/lib/apioauth.php
@@ -30,7 +30,7 @@
if (!defined('STATUSNET')) {
exit(1);
}
-
+require_once INSTALLDIR . '/lib/apiaction.php';
require_once INSTALLDIR . '/lib/apioauthstore.php';
/**
@@ -44,7 +44,7 @@ require_once INSTALLDIR . '/lib/apioauthstore.php';
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
-class ApiOauthAction extends Action
+class ApiOauthAction extends ApiAction
{
/**
* Is this a read-only action?
@@ -91,13 +91,14 @@ class ApiOauthAction extends Action
unset($_REQUEST['p']);
$queryArray = explode('&', $_SERVER['QUERY_STRING']);
+
for ($i = 0; $i < sizeof($queryArray); $i++) {
if (substr($queryArray[$i], 0, 1) == 'p=') {
unset($queryArray[$i]);
}
}
- $_SERVER['QUERY_STRING'] = implode('&', $queryString);
+ $_SERVER['QUERY_STRING'] = implode('&', $queryArray);
}
function getCallback($url, $params)
@@ -120,4 +121,5 @@ class ApiOauthAction extends Action
return ($url . '&' . $k . '=' . $v);
}
}
+
}