Skip to content

Commit

Permalink
Update SassTask.php (#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
siad007 authored and mrook committed Nov 22, 2016
1 parent 197bf98 commit 20a43e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion classes/phing/tasks/ext/SassTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,10 @@ public function setFile($file)
*/
public function init()
{
include_once 'System.php';
@include_once 'System.php';
if (!class_exists('System')) {
throw new BuildException("You must have installed PEAR in order to use SassTask.");
}
@include_once 'vendor/autoload.php';
if (version_compare(PHP_VERSION, '5.2', '<=')) {
$this->useScssphp = false;
Expand Down

0 comments on commit 20a43e3

Please sign in to comment.