Changeset 812 for trunk/core/lib/Foswiki/Configure/Load.pm
- Timestamp:
- 11/19/08 16:05:12 (4 years ago)
- File:
-
- 1 edited
-
trunk/core/lib/Foswiki/Configure/Load.pm (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/lib/Foswiki/Configure/Load.pm
r809 r812 28 28 This module consists of just a single subroutine =readConfig=. It allows to 29 29 safely modify configuration variables _for one single run_ without affecting 30 normal TWiki operation.30 normal Foswiki operation. 31 31 32 32 =cut … … 40 40 ---++ StaticMethod readConfig() 41 41 42 In normal TWiki operations as a web server this routine is called by the42 In normal Foswiki operations as a web server this routine is called by the 43 43 =BEGIN= block of =Foswiki.pm=. However, when benchmarking/debugging it can be 44 44 replaced by custom code which sets the configuration hash. To prevent us from … … 46 46 =$cfg{ConfigurationFinished}= as an indicator. 47 47 48 Note that this method is called by TWiki and configure, and *only* reads48 Note that this method is called by Foswiki and configure, and *only* reads 49 49 Foswiki.spec= to get defaults. Other spec files (those for extensions) are 50 50 *not* read. … … 89 89 PubDir TemplateDir ScriptUrlPath LocalesDir ) { 90 90 91 # We can't do this, because it prevents TWiki being run without91 # We can't do this, because it prevents Foswiki being run without 92 92 # a LocalSite.cfg, which we don't want 93 93 # die "$var must be defined in LocalSite.cfg" … … 121 121 ---++ StaticMethod expandValue($string) -> $boolean 122 122 123 Expands references to TWiki configuration items which occur in the123 Expands references to Foswiki configuration items which occur in the 124 124 value of other configuration items. Use expand($hashref) if the item 125 125 is not a plain scalar. … … 138 138 ---++ StaticMethod readDefaults() -> \@errors 139 139 140 This is only called by =configure= to initialise the TWiki config hash with140 This is only called by =configure= to initialise the Foswiki config hash with 141 141 default values from the .spec files. 142 142
Note: See TracChangeset
for help on using the changeset viewer.
