summaryrefslogtreecommitdiff
path: root/buildscripts/phing
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/phing')
-rw-r--r--buildscripts/phing/tasks/PradoPackageTask.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/buildscripts/phing/tasks/PradoPackageTask.php b/buildscripts/phing/tasks/PradoPackageTask.php
index 8784bb77..e54a4093 100644
--- a/buildscripts/phing/tasks/PradoPackageTask.php
+++ b/buildscripts/phing/tasks/PradoPackageTask.php
@@ -1,5 +1,4 @@
-<?php
-
+<?php
require_once 'phing/Task.php';
/**
@@ -55,7 +54,7 @@ class PradoPackageTask extends Task
function processPhp($content,$files)
{
$content = preg_replace('/^\s*Prado::trace.*\s*;\s*$/mu','',$content);
- $content = preg_replace('/(PradoBase::using|Prado::using|require_once|include_once)\s*\(.*?\);/mu','',$content);
+ $content = preg_replace('/(PradoBase::using|Prado::using|require_once|include_once)\s*\([^\$].*?\);/mu','',$content);
$content = str_replace('Prado::', 'PradoBase::', $content);
$content = str_replace('PradoBase::getApplication()->getMode()', 'true', $content);
$content = str_replace('TApplicationMode::Debug', 'true', $content);