From 450de7861c5a4a375975a912800faf72d56964ea Mon Sep 17 00:00:00 2001 From: Christian Fowler Date: Sat, 17 Feb 2007 18:46:32 +0000 Subject: 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 --- LibertySystem.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LibertySystem.php') diff --git a/LibertySystem.php b/LibertySystem.php index 6deebd3..14fb8e6 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.59 2007/02/17 18:25:51 bitweaver Exp $ +* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertySystem.php,v 1.60 2007/02/17 18:46:32 spiderr Exp $ * @author spider */ @@ -138,7 +138,7 @@ class LibertySystem extends LibertyBase { if( $pluginDir = opendir( $pPluginsPath ) ) { while( FALSE !== ( $plugin = readdir( $pluginDir ) ) ) { if( preg_match( '/\.php$/', $plugin ) ) { - $this->mPluginFileName = $plugin; + $this->mPluginFileName = basename( $plugin ); include_once( $pPluginsPath.$plugin ); } } -- cgit v1.3