BUG 10435 I added option to view history Upgrades SOLVED

I added option to view history Upgrades
This commit is contained in:
Brayan Osmar Pereyra Suxo
2013-02-20 17:33:13 -04:00
parent 02a0c21bed
commit e80c97fb4e
3 changed files with 29 additions and 29 deletions

View File

@@ -129,16 +129,16 @@ function run_upgrade($command, $args)
// SAVE Upgrades/Patches
$arrayPatch = glob(PATH_TRUNK . 'patch-*');
if (count($arrayPatch)) {
if ($arrayPatch) {
foreach ($arrayPatch as $value) {
if (file_exists($value)) {
// copy content the patch
$names = pathinfo($value);
$nameFile = $names['basename'];
$fichero = file_get_contents($value);
$fichero = eregi_replace("[\n|\r|\n\r]", ' ', $fichero);
CLI::logging($fichero . ' installed (' . $nameFile . ')', PATH_DATA . 'log/upgrades.log');
$contentFile = file_get_contents($value);
$contentFile = preg_replace("[\n|\r|\n\r]", '', $contentFile);
CLI::logging($contentFile . ' installed (' . $nameFile . ')', PATH_DATA . 'log/upgrades.log');
// move file of patch
$newFile = PATH_DATA . $nameFile;