X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=api.php;h=0fb674b9ebe9706c746de36067fedc849f465cf5;hp=9cf75787ba1a387cfa4dd0699d0aa4e48c12d3f4;hb=bd5a37aacf600bdd5f3a6e7998f92bd1d9326a8a;hpb=9c0eeb1a2d985f77134385975bf611ddc2bb8c7b diff --git a/api.php b/api.php index 9cf75787ba..0fb674b9eb 100644 --- a/api.php +++ b/api.php @@ -41,7 +41,7 @@ if ( !$wgRequest->checkUrlExtension() ) { return; } -// Pathinfo can be used for stupid things. We don't support it for api.php at +// PATH_INFO can be used for stupid things. We don't support it for api.php at // all, so error out if it's present. if ( isset( $_SERVER['PATH_INFO'] ) && $_SERVER['PATH_INFO'] != '' ) { $correctUrl = wfAppendQuery( wfScript( 'api' ), $wgRequest->getQueryValues() ); @@ -61,10 +61,9 @@ $wgTitle = Title::makeTitle( NS_SPECIAL, 'Badtitle/dummy title for API calls set RequestContext::getMain()->setTitle( $wgTitle ); try { - /* 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, - * but we don't care here, as that is handled by the constructor. - */ + // 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, + // but we don't care here, as that is handled by the constructor. $processor = new ApiMain( RequestContext::getMain(), true ); // Last chance hook before executing the API