From: <gem...@li...> - 2013-04-11 09:58:23
|
Revision: 1222 http://sourceforge.net/p/gemstracker/code/1222 Author: matijsdejong Date: 2013-04-11 09:58:19 +0000 (Thu, 11 Apr 2013) Log Message: ----------- GEMS_PROJECT_NAME_UC and other constants can now be used as keys for application.ini loaderDirs Modified Paths: -------------- trunk/library/changelog.txt trunk/library/classes/GemsEscort.php Modified: trunk/library/changelog.txt =================================================================== --- trunk/library/changelog.txt 2013-04-11 09:51:25 UTC (rev 1221) +++ trunk/library/changelog.txt 2013-04-11 09:58:19 UTC (rev 1222) @@ -22,8 +22,8 @@ contact.forumUrl = "" ; The path to the forum if available contact.gemsUrl = "http://gemstracker.org/" -New application.ini settings (add before the first resource and change NewProject to your own project prefix): -loaderDirs.NewProject = APPLICATION_PATH "/classes/NewProject" +New application.ini settings: +loaderDirs.GEMS_PROJECT_NAME_UC = APPLICATION_PATH "/classes/" GEMS_PROJECT_NAME_UC loaderDirs.Gems = GEMS_LIBRARY_DIR "/classes/Gems" Numerous small bugs solved Modified: trunk/library/classes/GemsEscort.php =================================================================== --- trunk/library/classes/GemsEscort.php 2013-04-11 09:51:25 UTC (rev 1221) +++ trunk/library/classes/GemsEscort.php 2013-04-11 09:58:19 UTC (rev 1222) @@ -112,7 +112,17 @@ // DIRECTORIES USED BY LOADER $dirs = $this->getOption('loaderDirs'); - if (! $dirs) { + if ($dirs) { + $newDirs = array(); + foreach ($dirs as $key => $path) { + if (defined($key)) { + $newDirs[constant($key)] = $path; + } else { + $newDirs[$key] = $path; + } + } + $dirs = $newDirs; + } else { global $GEMS_DIRS; // Use $GEMS_DIRS if defined This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |