jenkins-bot has submitted this change and it was merged.

Change subject: Remove error suppression for Handlebars compilation
......................................................................


Remove error suppression for Handlebars compilation

Templates are only compiled in development mode, so there is no reason
to hide errors (and @ is not allowed by our coding conventions).  Also,
it will throw an exception afterwards anyway,unless there has been no
change.

Change-Id: I1172992e87713560638e29473d32f8f8be7c0a9a
---
M includes/TemplateHelper.php
1 file changed, 1 insertion(+), 3 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/TemplateHelper.php b/includes/TemplateHelper.php
index 1501ea9..17f9b78 100644
--- a/includes/TemplateHelper.php
+++ b/includes/TemplateHelper.php
@@ -97,8 +97,7 @@
                        if ( !$code ) {
                                throw new FlowException( "Failed to compile 
template '$templateName'." );
                        }
-                       // @FIXME: Using @ is bad.
-                       $success = @file_put_contents( $filenames['compiled'], 
$code );
+                       $success = file_put_contents( $filenames['compiled'], 
$code );
 
                        // failed to recompile template (OS permissions?); 
unless the
                        // content hasn't changes, throw an exception!
@@ -803,4 +802,3 @@
                );
        }
 }
-

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I1172992e87713560638e29473d32f8f8be7c0a9a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to