Brion VIBBER has uploaded a new change for review.

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


Change subject: Fix for non-trimmed mode
......................................................................

Fix for non-trimmed mode

Change-Id: Iacaf2c2a62884aa530da46304981dc345ec5b13e
---
M Score.body.php
1 file changed, 6 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Score 
refs/changes/42/62242/1

diff --git a/Score.body.php b/Score.body.php
index 3201c4b..097b004 100644
--- a/Score.body.php
+++ b/Score.body.php
@@ -637,12 +637,12 @@
                }
 
                // Add the PNGs
-               if ( file_exists( $factoryImageTrimmed ) ) {
-                       if ( $wgScoreTrim ) {
-                               $src = $factoryImageTrimmed;
-                       } else {
-                               $src = $factoryImage;
-                       }
+               if ( $wgScoreTrim ) {
+                       $src = $factoryImageTrimmed;
+               } else {
+                       $src = $factoryImage;
+               }
+               if ( file_exists( $src ) ) {
                        $dstFileName = "{$options['file_name_prefix']}.png";
                        $ops[] = array(
                                'op' => 'store',

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iacaf2c2a62884aa530da46304981dc345ec5b13e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Score
Gerrit-Branch: master
Gerrit-Owner: Brion VIBBER <[email protected]>

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

Reply via email to