X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=api.php;h=7246cf1bce781b26567eeb76047944685e90e60d;hb=f8efa1a751cd25494520ec5cb0add5f817278f1f;hp=07c826c068cdf83fcb332e87d12b87ee2e197374;hpb=3758769f0d2b244b113714da012dc1ceb95d0e22;p=lhc%2Fweb%2Fwiklou.git diff --git a/api.php b/api.php index 07c826c068..7246cf1bce 100644 --- a/api.php +++ b/api.php @@ -17,14 +17,14 @@ * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * * @file */ -/** - * This file is the entry point for all API queries. It begins by checking +/** + * This file is the entry point for all API queries. It begins by checking * whether the API is enabled on this wiki; if not, it informs the user that * s/he should set $wgEnableAPI to true and exits. Otherwise, it constructs * a new ApiMain using the parameter passed to it as an argument in the URL @@ -104,7 +104,7 @@ define( 'MW_API', true ); // Set a dummy $wgTitle, because $wgTitle == null breaks various things // In a perfect world this wouldn't be necessary -$wgTitle = Title::newFromText( 'API' ); +$wgTitle = Title::makeTitle( NS_MAIN, 'API' ); /* Construct an ApiMain with the arguments passed via the URL. What we get back * is some form of an ApiMain, possibly even one that produces an error message,