Bug: T176526
Change-Id: I7b692def1695119291b26b2f2d25064af9e621f7
it had unexpected behavior (only marking text if it looked like a URL)
and was only used in a single place in the code. Use
LanguageConverter::markNoConversion() instead.
+* (T176526) EditPage::getContextTitle() falling back to $wgTitle when the
+ context title is unset is now deprecated; anything creating an EditPage
+ instance should set the context title via ::setContextTitle().
=== Other changes in 1.32 ===
* …
/**
* Get the context title object.
- * If not set, $wgTitle will be returned. This behavior might change in
- * the future to return $this->mTitle instead.
+ *
+ * If not set, $wgTitle will be returned, but this is deprecated. This will
+ * throw an exception.
*
* @return Title
*/
public function getContextTitle() {
if ( is_null( $this->mContextTitle ) ) {
- wfDebugLog(
- 'GlobalTitleFail',
- __METHOD__ . ' called by ' . wfGetAllCallers( 5 ) . ' with no title set.'
- );
+ wfDeprecated( __METHOD__ . ' called with no title set', '1.32' );
global $wgTitle;
return $wgTitle;
} else {