cvs: pear /I18Nv2/misc update.php

From: Date: Mon, 03 Oct 2005 14:25:04 +0000
Subject: cvs: pear /I18Nv2/misc update.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35243@lists.php.net to get a copy of this message
dufuz Mon Oct 3 10:25:04 2005 EDT Modified files: /pear/I18Nv2/misc update.php Log: We don't need a instance of System. http://cvs.php.net/diff.php/pear/I18Nv2/misc/update.php?r1=1.6&r2=1.7&ty=u Index: pear/I18Nv2/misc/update.php diff -u pear/I18Nv2/misc/update.php:1.6 pear/I18Nv2/misc/update.php:1.7 --- pear/I18Nv2/misc/update.php:1.6 Mon Oct 3 10:21:09 2005 +++ pear/I18Nv2/misc/update.php Mon Oct 3 10:25:04 2005 @@ -4,7 +4,7 @@ /** * Updater for I18Nv2 * - * $Id: update.php,v 1.6 2005/10/03 14:21:09 dufuz Exp $ + * $Id: update.php,v 1.7 2005/10/03 14:25:04 dufuz Exp $ */ /** @@ -215,16 +215,15 @@ // Create needed dirs require_once 'System.php'; - $system =& new System(); $cvs = $opt->getValue('cvsdir'); - $result = $system->mkDir($cvs); + $result = System::mkDir($cvs); if (!$result) { verbose("Creating dir $cvs failed"); } $locales = $opt->getValue('checkoutdir'); - $result = $system->mkDir($locales); + $result = System::mkDir($locales); if (!$result) { verbose("Creating dir $locales failed"); } @@ -298,20 +297,21 @@ function cleanup() { // cleanup + require_once 'System.php'; $cvs = $opt->getValue('cvsdir'); - $result = $system->rm("-rf $cvs"); + $result = System::rm("-rf $cvs"); if (!$result) { verbose("Could not remove $cvs"); } $locales = $opt->getValue('checkoutdir'); - $result = $system->rm("-rf $locales"); + $result = System::rm("-rf $locales"); if (!$result) { verbose("Could not remove $locales"); } $file = $opt->getValue('snapshotfile'); - $result = @unlink($file); + $result = System::rm($file); if (!$result) { verbose("Could not remove $file"); }

« previous php.pear.cvs (#35243) next »