Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 117130 Details for
Bug 253976
app.class.php doesnt allow for a global app-config.php file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch to allow a global app-config.php
app-config.txt (text/plain), 1.26 KB, created by
Nathan Gervais
on 2008-11-05 14:04:59 EST
(
hide
)
Description:
Patch to allow a global app-config.php
Filename:
MIME Type:
Creator:
Nathan Gervais
Created:
2008-11-05 14:04:59 EST
Size:
1.26 KB
patch
obsolete
>Index: eclipse.org-common/system/app.class.php >=================================================================== >RCS file: /cvsroot/org.eclipse/www/eclipse.org-common/system/app.class.php,v >retrieving revision 1.55 >diff -u -r1.55 app.class.php >--- eclipse.org-common/system/app.class.php 5 Nov 2008 16:37:49 -0000 1.55 >+++ eclipse.org-common/system/app.class.php 5 Nov 2008 19:03:20 -0000 >@@ -91,12 +91,17 @@ > # Make it easy to override database and other settings (don't check app-config.php in to CVS!) > if($this->devmode) { > if(file_exists(getcwd() . '/app-config.php')) { >- include(getcwd() . '/app-config.php'); >+ include_once(getcwd() . '/app-config.php'); > # We call a function inside app-config.php and pass it a reference to ourselves because > # this class is still in the constructor and might not be available externally by name. > # File just contains a function called app_config() which is called. Nothing more is needed. > app_config($this); > } >+ else if(file_exists($_SERVER['DOCUMENT_ROOT'] . '/eclipse.org-common/system/app-config.php')) >+ { >+ include_once($_SERVER['DOCUMENT_ROOT'] . '/eclipse.org-common/system/app-config.php'); >+ app_config($this); >+ } > } > > # Initialize backtrace storage
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 253976
: 117130