Merge pull request #123 from CrashyBang/patch-1

Fix i18n Textcollector Task if phing not installed
This commit is contained in:
Thierry François 2016-02-19 13:52:17 +02:00
commit 825b989ad6

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';