r106089 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106088‎ | r106089 | r106090 >
Date:20:45, 13 December 2011
Author:jeroendedauw
Status:ok
Tags:
Comment:
make docs more clear, method can only be used as is since 1.18, not 1.16
Modified paths:
  • /trunk/phase3/includes/Linker.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialWantedpages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Linker.php
@@ -135,7 +135,10 @@
136136 * name of the target).
137137 * link() replaces the old functions in the makeLink() family.
138138 *
139 - * @since 1.16
 139+ * @since 1.18 Method exists since 1.16 as non-static, made static in 1.18.
 140+ * You can call it using this if you want to keep compat with these:
 141+ * $linker = class_exists( 'DummyLinker' ) ? new DummyLinker() : new Linker();
 142+ * $linker->link( ... );
140143 *
141144 * @param $target Title Can currently only be a Title, but this may
142145 * change to support Images, literal URLs, etc.
Index: trunk/phase3/includes/specials/SpecialWantedpages.php
@@ -27,6 +27,7 @@
2828 * @ingroup SpecialPage
2929 */
3030 class WantedPagesPage extends WantedQueryPage {
 31+
3132 function __construct( $name = 'Wantedpages' ) {
3233 parent::__construct( $name );
3334 $this->mIncludable = true;

Status & tagging log