From: Jeroen De Dauw Date: Tue, 13 Dec 2011 20:45:35 +0000 (+0000) Subject: make docs more clear, method can only be used as is since 1.18, not 1.16 X-Git-Tag: 1.31.0-rc.0~25989 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=d117ac68d5571ed76a742491c518513356d3562f;p=lhc%2Fweb%2Fwiklou.git make docs more clear, method can only be used as is since 1.18, not 1.16 --- diff --git a/includes/Linker.php b/includes/Linker.php index 454a35f58d..35cf756f4d 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -135,7 +135,10 @@ class Linker { * name of the target). * link() replaces the old functions in the makeLink() family. * - * @since 1.16 + * @since 1.18 Method exists since 1.16 as non-static, made static in 1.18. + * You can call it using this if you want to keep compat with these: + * $linker = class_exists( 'DummyLinker' ) ? new DummyLinker() : new Linker(); + * $linker->link( ... ); * * @param $target Title Can currently only be a Title, but this may * change to support Images, literal URLs, etc. diff --git a/includes/specials/SpecialWantedpages.php b/includes/specials/SpecialWantedpages.php index fa86042a30..4624b3550d 100644 --- a/includes/specials/SpecialWantedpages.php +++ b/includes/specials/SpecialWantedpages.php @@ -27,6 +27,7 @@ * @ingroup SpecialPage */ class WantedPagesPage extends WantedQueryPage { + function __construct( $name = 'Wantedpages' ) { parent::__construct( $name ); $this->mIncludable = true;