Fix bad reference

This commit is contained in:
Zach Copley 2010-10-05 16:13:07 -07:00
parent 3053770078
commit 83566f014c

View File

@ -30,7 +30,7 @@
if (!defined('STATUSNET')) { if (!defined('STATUSNET')) {
exit(1); exit(1);
} }
require_once INSTALLDIR . '/lib/apiaction.php';
require_once INSTALLDIR . '/lib/apioauthstore.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 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/ * @link http://status.net/
*/ */
class ApiOauthAction extends Action class ApiOauthAction extends ApiAction
{ {
/** /**
* Is this a read-only action? * Is this a read-only action?
@ -91,13 +91,14 @@ class ApiOauthAction extends Action
unset($_REQUEST['p']); unset($_REQUEST['p']);
$queryArray = explode('&', $_SERVER['QUERY_STRING']); $queryArray = explode('&', $_SERVER['QUERY_STRING']);
for ($i = 0; $i < sizeof($queryArray); $i++) { for ($i = 0; $i < sizeof($queryArray); $i++) {
if (substr($queryArray[$i], 0, 1) == 'p=') { if (substr($queryArray[$i], 0, 1) == 'p=') {
unset($queryArray[$i]); unset($queryArray[$i]);
} }
} }
$_SERVER['QUERY_STRING'] = implode('&', $queryString); $_SERVER['QUERY_STRING'] = implode('&', $queryArray);
} }
function getCallback($url, $params) function getCallback($url, $params)
@ -120,4 +121,5 @@ class ApiOauthAction extends Action
return ($url . '&' . $k . '=' . $v); return ($url . '&' . $k . '=' . $v);
} }
} }
} }