Merged in mcuiza/processmaker/correccion_incidencias (pull request #1918)

correccion de incidencias veracode
This commit is contained in:
Julio Cesar Laura Avendaño
2015-04-14 12:46:06 -04:00

View File

@@ -856,7 +856,8 @@ class Phing {
if (self::getMsgOutputLevel() === PROJECT_MSG_DEBUG) {
print("Phing::import() prepending new include_path components: " . implode(PATH_SEPARATOR, $new_parts) . "\n");
}
if (is_dir(implode(PATH_SEPARATOR, array_merge($new_parts, $curr_parts)))) {
$firstPath = explode(":", implode(PATH_SEPARATOR, array_merge($new_parts, $curr_parts)));
if (is_dir($firstPath[0])) {
ini_set('include_path', implode(PATH_SEPARATOR, array_merge($new_parts, $curr_parts)));
}
}