[zi-cvs] packages/com.zzoss.plugin.lib Plugin.php,1.20,1.21
Sandro Zic <[email protected]> Tue, 11 May 2004 19:09:12 +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-serv13223/com.zzoss.plugin.lib
Modified Files:
Plugin.php
Log Message:
provide and use plugin vars for distri and app version and name from XML descriptors
Index: Plugin.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.plugin.lib/Plugin.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** Plugin.php 24 Apr 2004 16:19:42 -0000 1.20
--- Plugin.php 11 May 2004 19:09:08 -0000 1.21
***************
*** 543,549 ****
$this->log .= "* Initializing global plugin variables.\n";
! $this->initApplicationSettings();
// application
$GLOBALS['ZI']['application_root'] =
$GLOBALS['ZI']['application_baseinstalldir'] =
--- 543,555 ----
$this->log .= "* Initializing global plugin variables.\n";
! // distribution
! $xml = $this->registry->getDistribution();
! $GLOBALS['ZI']['distribution_name'] = $xml['name'];
! $GLOBALS['ZI']['distribution_version'] = $xml['release']['version'];
! unset($xml);
// application
+ $this->initApplicationSettings();
+
$GLOBALS['ZI']['application_root'] =
$GLOBALS['ZI']['application_baseinstalldir'] =
***************
*** 558,561 ****
--- 564,572 ----
$GLOBALS['ZI']['application_profile'] = $this->application_settings['application_profile'];
+ $xml = $this->registry->getApplication();
+ $GLOBALS['ZI']['application_name'] = $xml['name'];
+ $GLOBALS['ZI']['application_version'] = $xml['release']['version'];
+ unset($xml);
+
// package
$directory =
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3