Fix i18n Textcollector Task if phing not installed

This commit is contained in:
Otis Wright 2016-02-18 11:19:53 +13:00
parent 9c5a2c2b5d
commit df71f1ffbf

View File

@ -10,13 +10,13 @@
* *
* @see https://github.com/silverstripe/silverstripe-buildtools/blob/master/src/GenerateJavascriptI18nTask.php * @see https://github.com/silverstripe/silverstripe-buildtools/blob/master/src/GenerateJavascriptI18nTask.php
*/ */
include_once 'phing/Task.php';
// Ignore this file if phing is not installed // Ignore this file if phing is not installed
if (!class_exists('Task')) { if (!class_exists('Task')) {
return; return;
} }
include_once 'phing/Task.php';
class BuildTransifexTranslations extends Task class BuildTransifexTranslations extends Task
{ {
private $txapi = 'https://www.transifex.com/api/2'; private $txapi = 'https://www.transifex.com/api/2';