saper has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/248560

Change subject: installer should set CACHE_ACCEL as the default if available
......................................................................

installer should set CACHE_ACCEL as the default if available

Bug: T49162
Change-Id: I57c8887c00cb3b73367e6733af1bf93dbab0c639
---
M includes/installer/WebInstallerPage.php
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/60/248560/1

diff --git a/includes/installer/WebInstallerPage.php 
b/includes/installer/WebInstallerPage.php
index 0d11463..6c8b164 100644
--- a/includes/installer/WebInstallerPage.php
+++ b/includes/installer/WebInstallerPage.php
@@ -1125,8 +1125,11 @@
                );
 
                $caches = array( 'none' );
+               $cacheval_default = 'none';
+
                if ( count( $this->getVar( '_Caches' ) ) ) {
                        $caches[] = 'accel';
+                       $cacheval_default = 'accel';
                }
                $caches[] = 'memcached';
 
@@ -1136,7 +1139,7 @@
                        // We need to set a default here; but don't hardcode it
                        // or we lose it every time we reload the page for 
validation
                        // or going back!
-                       $cacheval = 'none';
+                       $cacheval = $cacheval_default;
                }
                $hidden = ( $cacheval == 'memcached' ) ? '' : 'display: none';
                $this->addHTML(

-- 
To view, visit https://gerrit.wikimedia.org/r/248560
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I57c8887c00cb3b73367e6733af1bf93dbab0c639
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: saper <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to