From: Chad Horohoe Date: Sat, 10 Sep 2011 06:47:37 +0000 (+0000) Subject: Add a comment about something I noticed while spelunking the code X-Git-Tag: 1.31.0-rc.0~27756 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=f15ec7bb071d1a45af2fd0c8750603138472ded3;p=lhc%2Fweb%2Fwiklou.git Add a comment about something I noticed while spelunking the code --- diff --git a/api.php b/api.php index 7aef1eb992..05a881ee31 100644 --- a/api.php +++ b/api.php @@ -103,6 +103,9 @@ if ( $wgCrossSiteAJAXdomains && isset( $_SERVER['HTTP_ORIGIN'] ) ) { // Set a dummy $wgTitle, because $wgTitle == null breaks various things // In a perfect world this wouldn't be necessary +// +// @todo @fixme Ummmm, doesn't this line make the PHP4 check at the top completely +// useless? Suggest moving more stuff out of api.php like we did with index.php $wgTitle = Title::makeTitle( NS_MAIN, 'API' ); /* Construct an ApiMain with the arguments passed via the URL. What we get back