From: Bharat M. <bh...@us...> - 2004-02-05 09:47:30
|
Update of /cvsroot/gallery/gallery2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25256 Modified Files: init.php main.php Log Message: Remove code that stores directory locations (eg, modules, layouts, etc) from init.php and use dirname(__FILE__) relative paths instead. Index: init.php =================================================================== RCS file: /cvsroot/gallery/gallery2/init.php,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- init.php 5 Feb 2004 07:25:45 -0000 1.29 +++ init.php 5 Feb 2004 09:44:25 -0000 1.30 @@ -67,15 +67,6 @@ $platform = $gallery->getPlatform(); $slash = $platform->getDirectorySeparator(); - $gallery->setConfig('code.gallery.base', $galleryBase); - $gallery->setConfig('code.gallery.layouts', $galleryBase . 'layouts' . $slash); - $gallery->setConfig('code.gallery.themes', $galleryBase . 'themes' . $slash); - $gallery->setConfig('code.gallery.modules', $galleryBase . 'modules' . $slash); - $gallery->setConfig('code.gallery.setup', $galleryBase . 'setup' . $slash); - - /* Smarty paths */ - $gallery->setConfig('code.smarty.base', $galleryBase . 'lib' . $slash . 'smarty' . $slash); - /* Load our local configuration */ include(dirname(__FILE__) . $slash . 'config.php'); Index: main.php =================================================================== RCS file: /cvsroot/gallery/gallery2/main.php,v retrieving revision 1.44 retrieving revision 1.45 diff -u -r1.44 -r1.45 --- main.php 9 Nov 2003 02:18:35 -0000 1.44 +++ main.php 5 Feb 2004 09:44:26 -0000 1.45 @@ -223,7 +223,7 @@ } } - $template = new GalleryTemplate($gallery->getConfig('code.gallery.base') . 'templates/'); + $template = new GalleryTemplate(dirname(__FILE__) . '/templates/'); $showGlobal = true; if (empty($redirectUrl)) { |