bugGnuheter - Bugs: bug #534, config.php inkluderas väldigt ofta

 
 

bug #534: config.php inkluderas väldigt ofta

Submitter:  Patrik Wallström <pawal>
Submitted:  Tue 04 Jun 2002 12:16:24 AM UTC
   
 
Category:  Todo Severity:  1,5
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 04 Jun 2002 12:16:24 AM UTC, original submission:  

Flera saker borde göras med config.php. En är att som i PostNuke att sätta alla konfigurations-variabler i en enda hash, t ex

$config['sitename']='Gnuheter';

Denna hash kan sedan få vara global. Detta betyder att config.php bara behöver laddas en gång. Det är många funktioner som laddar den för att få alla config-variabler i sitt lokala scope, istället för att göra de nödvändiga config-variablerna globala. Förståeligt iofs, men fel.

Patrik Wallström <pawal>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2002-07-19 pawal CategoryNone None

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code