From 7d9247040c6477669f5059363b4ee79faa5efde5 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 11 Oct 2013 16:40:36 +0200 Subject: [PATCH] Make makeStaticLoader.php pass phpcs Change-Id: Ibdf95ca3c3047d497b05cbe195f8b839f111f12e --- maintenance/makeStaticLoader.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/maintenance/makeStaticLoader.php b/maintenance/makeStaticLoader.php index 1231e29bee..96085b9c7d 100644 --- a/maintenance/makeStaticLoader.php +++ b/maintenance/makeStaticLoader.php @@ -73,11 +73,11 @@ class MakeStaticLoader extends Maintenance { // Path to /modules/ $vePath = $this->getOption( 've-path', - $target === 'demo' + $target === 'demo' ? // From /demos/ve/index.php - ? '../../modules' + '../../modules' : // From /modules/ve/test/index.html - : '../..' + '../..' ); $wgResourceModules['Dependencies'] = array( @@ -141,7 +141,7 @@ class MakeStaticLoader extends Maintenance { 've/init/sa/ve.init.sa.Target.js', ) ); - $self = isset( $_SERVER['PHP_SELF'] ) ? $_SERVER['PHP_SELF'] : ( lcfirst( __CLASS__ ) . '.php' ); + $self = isset( $_SERVER['PHP_SELF'] ) ? $_SERVER['PHP_SELF'] : ( lcfirst( __CLASS__ ) . '.php' ); $head = $body = '';