* (bug 18546) Added timestamp of new revision to action=edit output
* (bug 18554) Also list hidden revisions in list=usercontribs for privileged
users
+* (bug 13049) "API must be accessed from the primary script entry point" error
=== Languages updated in 1.15 ===
//
// Ensure that all access is through the canonical entry point...
//
-if( isset( $_SERVER['SCRIPT_URL'] ) ) {
- $url = $_SERVER['SCRIPT_URL'];
+if( isset( $_SERVER['SCRIPT_NAME'] ) ) {
+ $url = $_SERVER['SCRIPT_NAME'];
} else {
- $url = $_SERVER['PHP_SELF'];
+ $url = $_SERVER['URL'];
}
if( strcmp( "$wgScriptPath/api$wgScriptExtension", $url ) ) {
wfHttpError( 403, 'Forbidden',