Remove unnecessary requires
This commit is contained in:
parent
3daf17d935
commit
e650794300
|
@ -32,8 +32,6 @@ if (!defined('STATUSNET')) {
|
|||
exit(1);
|
||||
}
|
||||
|
||||
require_once INSTALLDIR . '/lib/api.php';
|
||||
|
||||
/**
|
||||
* Gives a full dump of configuration variables for this instance
|
||||
* of StatusNet, minus variables that may be security-sensitive (like
|
||||
|
|
|
@ -31,8 +31,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
|
|||
exit(1);
|
||||
}
|
||||
|
||||
require_once INSTALLDIR.'/lib/api.php';
|
||||
|
||||
/**
|
||||
* Action for outputting search results in Twitter compatible Atom
|
||||
* format.
|
||||
|
|
|
@ -31,7 +31,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
|
|||
exit(1);
|
||||
}
|
||||
|
||||
require_once INSTALLDIR.'/lib/api.php';
|
||||
require_once INSTALLDIR.'/lib/jsonsearchresultslist.php';
|
||||
|
||||
/**
|
||||
|
|
|
@ -31,8 +31,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
|
|||
exit(1);
|
||||
}
|
||||
|
||||
require_once INSTALLDIR.'/lib/api.php';
|
||||
|
||||
/**
|
||||
* Returns the top ten queries that are currently trending
|
||||
*
|
||||
|
|
|
@ -38,7 +38,6 @@ if (!defined('STATUSNET')) {
|
|||
exit(1);
|
||||
}
|
||||
|
||||
require_once INSTALLDIR . '/lib/api.php';
|
||||
require_once INSTALLDIR . '/lib/apioauth.php';
|
||||
|
||||
/**
|
||||
|
|
|
@ -142,8 +142,6 @@ class MapAction extends OwnerDesignAction
|
|||
// of refactoring from within a plugin, so I'm just abusing
|
||||
// the ApiAction method. Don't do this unless you're me!
|
||||
|
||||
require_once(INSTALLDIR.'/lib/api.php');
|
||||
|
||||
$act = new ApiAction('/dev/null');
|
||||
|
||||
$arr = $act->twitterStatusArray($notice, true);
|
||||
|
|
|
@ -244,8 +244,6 @@ class RealtimePlugin extends Plugin
|
|||
// of refactoring from within a plugin, so I'm just abusing
|
||||
// the ApiAction method. Don't do this unless you're me!
|
||||
|
||||
require_once(INSTALLDIR.'/lib/api.php');
|
||||
|
||||
$act = new ApiAction('/dev/null');
|
||||
|
||||
$arr = $act->twitterStatusArray($notice, true);
|
||||
|
|
Loading…
Reference in New Issue
Block a user