[zi-cvs] packages/com.zzoss.plugin.lib Plugin.php,1.22,1.23

Sandro Zic <[email protected]> Mon, 17 May 2004 15:55:47 +0000
Newsgroups gmane.comp.php.zzoss.installer.cvs
Message-ID <[email protected]>
Update of /cvsroot/zzossinstaller/packages/com.zzoss.plugin.lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24557/com.zzoss.plugin.lib

Modified Files:
	Plugin.php 
Log Message:
- perform update in a sandbox within the installer data directory:
    - copy the old app to the sandbox
    - install the new app to the sandbox
    - copy back the new app to the application root
    <- important when installer installs itself
    <- makes sure that update is only finalized if no errors occured

Index: Plugin.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.plugin.lib/Plugin.php,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** Plugin.php	17 May 2004 13:19:17 -0000	1.22
--- Plugin.php	17 May 2004 15:55:45 -0000	1.23
***************
*** 445,450 ****
      function initApplicationSettings()
      {
          if(!is_array($this->application_settings)){
!             $this->application_settings = $this->registry->getApplicationSettings();
          }
      }
--- 445,454 ----
      function initApplicationSettings()
      {
+         $mode = '';
+         if($this->action == 'update'){
+             $mode = $this->action;
+         }
          if(!is_array($this->application_settings)){
!             $this->application_settings = $this->registry->getApplicationSettings($mode);
          }
      }



-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click