X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fpage%2FArticle.php;h=1c2e782b6b1bae557d6afb4d6842e8d0a0795fd4;hp=3628c7b69d2ec779c7b3902b3e9843a1d7c2a41f;hb=b328ae4a4ec1e87261f3b4d554f9bb9073c1c6aa;hpb=3587a9427d8ecae967caf98a4e0c9095e97b4aa8 diff --git a/includes/page/Article.php b/includes/page/Article.php index 3628c7b69d..1c2e782b6b 100644 --- a/includes/page/Article.php +++ b/includes/page/Article.php @@ -587,7 +587,7 @@ class Article implements Page { * page of the given title. */ public function view() { - global $wgUseFileCache, $wgDebugToolbar; + global $wgUseFileCache; # Get variables from query string # As side effect this will load the revision and update the title @@ -643,7 +643,7 @@ class Article implements Page { } # Try client and file cache - if ( !$wgDebugToolbar && $oldid === 0 && $this->mPage->checkTouched() ) { + if ( $oldid === 0 && $this->mPage->checkTouched() ) { # Try to stream the output from file cache if ( $wgUseFileCache && $this->tryFileCache() ) { wfDebug( __METHOD__ . ": done file cache\n" ); @@ -1929,13 +1929,14 @@ class Article implements Page { $outputPage->enableOOUI(); + $fields = []; + $options = Xml::listDropDownOptions( $ctx->msg( 'deletereason-dropdown' )->inContentLanguage()->text(), [ 'other' => $ctx->msg( 'deletereasonotherlist' )->inContentLanguage()->text() ] ); $options = Xml::listDropDownOptionsOoui( $options ); - $fields = []; $fields[] = new OOUI\FieldLayout( new OOUI\DropdownInputWidget( [ 'name' => 'wpDeleteReasonList',