Kill Dwimmerlaik
Seriously, the ops team spent some time trying to find that page during an outage, while in fact it's an obscure Tolkien reference - better be clear. Also, set the other dummy titles to something very clearly explaining what's going on and where. Change-Id: I6f33a2ea5030f22a258830a33f7bcefa7f0acd85
This commit is contained in:
parent
6e378cf93f
commit
536f98c760
3 changed files with 5 additions and 3 deletions
2
api.php
2
api.php
|
|
@ -59,7 +59,7 @@ if ( !$wgEnableAPI ) {
|
|||
|
||||
// Set a dummy $wgTitle, because $wgTitle == null breaks various things
|
||||
// In a perfect world this wouldn't be necessary
|
||||
$wgTitle = Title::makeTitle( NS_MAIN, 'API' );
|
||||
$wgTitle = Title::makeTitle( NS_SPECIAL, 'Badtitle/dummy title for API calls set in api.php' );
|
||||
|
||||
// RequestContext will read from $wgTitle, but it will also whine about it.
|
||||
// In a perfect world this wouldn't be necessary either.
|
||||
|
|
|
|||
|
|
@ -462,7 +462,9 @@ class MediaWiki {
|
|||
// Send Ajax requests to the Ajax dispatcher.
|
||||
if ( $this->config->get( 'UseAjax' ) && $request->getVal( 'action' ) === 'ajax' ) {
|
||||
// Set a dummy title, because $wgTitle == null might break things
|
||||
$title = Title::makeTitle( NS_MAIN, 'AJAX' );
|
||||
$title = Title::makeTitle( NS_SPECIAL, 'Badtitle/performing an AJAX call in '
|
||||
. __METHOD__
|
||||
);
|
||||
$this->context->setTitle( $title );
|
||||
$wgTitle = $title;
|
||||
|
||||
|
|
|
|||
2
includes/cache/MessageCache.php
vendored
2
includes/cache/MessageCache.php
vendored
|
|
@ -1049,7 +1049,7 @@ class MessageCache {
|
|||
if ( !$title ) {
|
||||
# It's not uncommon having a null $wgTitle in scripts. See r80898
|
||||
# Create a ghost title in such case
|
||||
$title = Title::newFromText( 'Dwimmerlaik' );
|
||||
$title = Title::makeTitle( NS_SPECIAL, 'Badtitle/title not set in ' . __METHOD__ );
|
||||
}
|
||||
|
||||
$this->mInParser = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue