This has been deprecated since 1.18, throwing warnings for over a
year and a half now, and nothing uses it anywhere in core or deployed
extensions.
No extensions in SVN seem to have this anymore (we must've cleaned
up well), and the only affected extensions in Git are:
- BlueSpiceExtensions
- DynamicPageList (commented, so shouldn't be a worry)
- SemanticPageMaker
- TwitterCards
If you're the author of one of these extensions or are feeling like
cleaning up ancient code, please get them fixed.
Change-Id: I8f3a54c14be4b38a8b917e32ba3a832e0a7ca116
changes to languages because of Bugzilla reports.
=== Other changes in 1.23 ===
changes to languages because of Bugzilla reports.
=== Other changes in 1.23 ===
+* The global variable $wgArticle has been removed after a lengthy deprecation
something completely different, after the basic globals have been set up, but
before ordinary actions take place.
$output: $wgOut
something completely different, after the basic globals have been set up, but
before ordinary actions take place.
$output: $wgOut
+$article: Article on which the action will be performed
$title: $wgTitle
$user: $wgUser
$request: $wgRequest
$title: $wgTitle
$user: $wgUser
$request: $wgRequest
/**
* Class to allow throwing wfDeprecated warnings
* when people use globals that we do not want them to.
/**
* Class to allow throwing wfDeprecated warnings
* when people use globals that we do not want them to.
- * (For example like $wgArticle)
*/
class DeprecatedGlobal extends StubObject {
*/
class DeprecatedGlobal extends StubObject {
$article = $this->initializeArticle();
if ( is_object( $article ) ) {
$pageView = true;
$article = $this->initializeArticle();
if ( is_object( $article ) ) {
$pageView = true;
- /**
- * $wgArticle is deprecated, do not use it.
- * @deprecated since 1.18
- */
- global $wgArticle;
- $wgArticle = new DeprecatedGlobal( 'wgArticle', $article, '1.18' );
-
$this->performAction( $article, $requestTitle );
} elseif ( is_string( $article ) ) {
$output->redirect( $article );
$this->performAction( $article, $requestTitle );
} elseif ( is_string( $article ) ) {
$output->redirect( $article );