dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Special:ApiSandbox
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialPermanentLink.php
diff --git
a/includes/specials/SpecialPermanentLink.php
b/includes/specials/SpecialPermanentLink.php
index
17115e8
..
53789c0
100644
(file)
--- a/
includes/specials/SpecialPermanentLink.php
+++ b/
includes/specials/SpecialPermanentLink.php
@@
-27,12
+27,16
@@
* @ingroup SpecialPage
*/
class SpecialPermanentLink extends RedirectSpecialPage {
* @ingroup SpecialPage
*/
class SpecialPermanentLink extends RedirectSpecialPage {
- function __construct() {
+
public
function __construct() {
parent::__construct( 'PermanentLink' );
$this->mAllowedRedirectParams = array();
}
parent::__construct( 'PermanentLink' );
$this->mAllowedRedirectParams = array();
}
- function getRedirect( $subpage ) {
+ /**
+ * @param string|null $subpage
+ * @return Title|bool
+ */
+ public function getRedirect( $subpage ) {
$subpage = intval( $subpage );
if ( $subpage === 0 ) {
# throw an error page when no subpage was given
$subpage = intval( $subpage );
if ( $subpage === 0 ) {
# throw an error page when no subpage was given