X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=blobdiff_plain;f=includes%2FOutputPage.php;h=e71cf1866c604be60b83dd58d84733580efaa2c7;hb=2b5fe6e3f1d01d8b24a1856f016c3c6d120a8855;hp=84a168b5e7a2dc7513dd62c796e73d75edfe7b70;hpb=a3144a21bcc253741d8bd169e6f1994b12c3ad8b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 84a168b5e7..e71cf1866c 100644 --- 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 ); }