dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
a3144a2
)
Merge "Introduce wgRelevantPageIsProbablyEditable"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Thu, 18 May 2017 16:01:26 +0000
(16:01 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Thu, 18 May 2017 16:01:26 +0000
(16:01 +0000)
includes/OutputPage.php
patch
|
blob
|
history
diff --git
a/includes/OutputPage.php
b/includes/OutputPage.php
index
84a168b
..
e71cf18
100644
(file)
--- a/
includes/OutputPage.php
+++ b/
includes/OutputPage.php
@@
-3210,6
+3210,10
@@
class OutputPage extends ContextSource {
$vars['wgIsProbablyEditable'] = $title->quickUserCan( 'edit', $user )
&& ( $title->exists() || $title->quickUserCan( 'create', $user ) );
+ $vars['wgRelevantPageIsProbablyEditable'] = $relevantTitle
+ && $relevantTitle->quickUserCan( 'edit', $user )
+ && ( $relevantTitle->exists() || $relevantTitle->quickUserCan( 'create', $user ) );
+
foreach ( $title->getRestrictionTypes() as $type ) {
$vars['wgRestriction' . ucfirst( $type )] = $title->getRestrictions( $type );
}