diff options
| author | bitweaver.org <bitweaver@users.sourceforge.net> | 2007-02-17 18:25:51 +0000 |
|---|---|---|
| committer | bitweaver.org <bitweaver@users.sourceforge.net> | 2007-02-17 18:25:51 +0000 |
| commit | 6b9f2188eaf5b939d816797d06262e4e2bcbc92c (patch) | |
| tree | 1f7e69ba376f22aa383800e655e009936e0cbace /LibertySystem.php | |
| parent | fce2f8f387a4e1f21adeeec2000bd455c39ad962 (diff) | |
| download | liberty-6b9f2188eaf5b939d816797d06262e4e2bcbc92c.tar.gz liberty-6b9f2188eaf5b939d816797d06262e4e2bcbc92c.tar.bz2 liberty-6b9f2188eaf5b939d816797d06262e4e2bcbc92c.zip | |
do not store absolute filenames because that will screw multiple source to same DB (sanbox, staging, etc.) moving site to a new location, or appserver sites with different paths
Diffstat (limited to 'LibertySystem.php')
| -rwxr-xr-x | LibertySystem.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/LibertySystem.php b/LibertySystem.php index cf86776..6deebd3 100755 --- a/LibertySystem.php +++ b/LibertySystem.php @@ -3,7 +3,7 @@ * System class for handling the liberty package * * @package liberty -* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertySystem.php,v 1.58 2007/01/30 15:07:18 squareing Exp $ +* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertySystem.php,v 1.59 2007/02/17 18:25:51 bitweaver Exp $ * @author spider <spider@steelsun.com> */ @@ -110,12 +110,12 @@ class LibertySystem extends LibertyBase { if( $pluginFile = $gBitSystem->getConfig( "{$this->mSystem}_plugin_file_$pluginGuid" ) ) { // check for the plugin in the default location - in case bitweaver root path changed. if ( file_exists( $pluginFile ) ) { - $this->mPluginFileName = $pluginFile; + $this->mPluginFileName = basename( $pluginFile ); include_once( $pluginFile ); } else { $defaultFile = LIBERTY_PKG_PATH.'plugins/'.basename( $pluginFile ); if( file_exists( $defaultFile ) ) { - $this->mPluginFileName = $defaultFile; + $this->mPluginFileName = basename( $defaultFile ); include_once( $defaultFile ); } } @@ -138,7 +138,7 @@ class LibertySystem extends LibertyBase { if( $pluginDir = opendir( $pPluginsPath ) ) { while( FALSE !== ( $plugin = readdir( $pluginDir ) ) ) { if( preg_match( '/\.php$/', $plugin ) ) { - $this->mPluginFileName = $pPluginsPath.$plugin; + $this->mPluginFileName = $plugin; include_once( $pPluginsPath.$plugin ); } } |
