X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=api.php;h=1cd549747c42109fb9a609676d268086766ccde3;hb=583538b131fef569a08c75c88951077adf9711a5;hp=3691ac6457df718b1e86d0b12f2c84401a4784dc;hpb=c30749cc1950cd1ae20012efe07d349e7e81531a;p=lhc%2Fweb%2Fwiklou.git diff --git a/api.php b/api.php index 3691ac6457..1cd549747c 100644 --- a/api.php +++ b/api.php @@ -1,9 +1,16 @@ @gmail.com + * Copyright © 2006 Yuri Astrakhan @gmail.com * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -23,17 +30,6 @@ * @file */ -/** - * 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 - * ('?action=') and with write-enabled set to the value of $wgEnableWriteAPI - * as specified in LocalSettings.php. It then invokes "execute()" on the - * ApiMain object instance, which produces output in the format sepecified - * in the URL. - */ - // So extensions (and other code) can check whether they're running in API mode define( 'MW_API', true );