]> git.andy128k.dev Git - ipf.git/commitdiff
php 5.3 friendly
authorAndrey Kutejko <andy128k@gmail.com>
Fri, 2 Aug 2013 17:02:43 +0000 (20:02 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Fri, 2 Aug 2013 17:02:43 +0000 (20:02 +0300)
ipf/command/pack.php
ipf/command/unpack.php

index b5a1e27cd0fe9b0d293288f4c20a525eada48350..b2492cb36ab052c59f4e3e2761e73ac11530415d 100644 (file)
@@ -19,7 +19,8 @@ class IPF_Command_Pack
             chdir($workingDirectory);
         }
 
-        (new IPF_Command_DBDump)->run(array('--quiet'));
+        $dumpCommand = new IPF_Command_DBDump;
+        $dumpCommand->run(array('--quiet'));
 
         IPF_Shell::unlink($outputFileName);
 
index 7d4453a275cddd3b6401d42cf127899e1ae6edab..639d7f061e24fc93991c2f7afcccd15b1851edb0 100644 (file)
@@ -17,13 +17,16 @@ class IPF_Command_Unpack
         IPF_Shell::unlink('upload.tar');
         IPF_Shell::unlink('dump.sql');
 
-        (new Archive_Tar($inputFileName))->extract('.');
+        $archive = new Archive_Tar($inputFileName);
+        $archive->extract('.');
 
-        (new IPF_Command_DBRestore)->run(array('--quiet'));
+        $restoreCommand = new IPF_Command_DBRestore;
+        $restoreCommand->run(array('--quiet'));
         IPF_Shell::unlink('dump.sql');
 
         $uploadsDir = IPF::get('document_root') . IPF::getUploadUrl();
-        (new Archive_Tar('upload.tar'))->extract($uploadsDir . '/..');
+        $archive = new Archive_Tar('upload.tar');
+        $archive->extract($uploadsDir . '/..');
         IPF_Shell::unlink('upload.tar');
     }
 }