Maybe is a stupid question,
but why in pnAPI.php some functions (like pnConfigGetVar and pnInit) use $GLOBALS['PNConfig']['System'][$name] and some other functions (like pnConfigSetVar and pnConfigDelVar) use $GLOBALS['pnconfig'][$name]?
--
Zikula Italia
SimpleGallery
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Different between $GLOBALS['PNConfig']['System'][$name] and $GLOBALS['pnconfig'][$name]
-
- Rank: Developer
- Registered: Mar 29, 2005
- Last visit: Mar 13, 2010
- Posts: 228
-
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
Looks like a bug to me.... one which is now fixed in subversion.
-Mark
--
Visit My homepage and Zikula themes. -
- Rank: Developer
- Registered: Mar 29, 2005
- Last visit: Mar 13, 2010
- Posts: 228
Maybe another little bug, always in pnAPI.php in pnInit
Code
$pnconfig = array();
$pndebug = array();
require_once 'config/config.php';
$GLOBALS['pnconfig'] = $pnconfig;
$GLOBALS['pndebug'] = $pndebug;
if(defined('_PNINSTALLVER')) {
$GLOBALS['PNConfig']['System']['PN_CONFIG_USE_OBJECT_ATTRIBUTION'] = false;
$GLOBALS['PNConfig']['System']['PN_CONFIG_USE_OBJECT_LOGGING'] = false;
$GLOBALS['PNConfig']['System']['PN_CONFIG_USE_OBJECT_META'] = false;
}
it declare $GLOBALS['pnconfig'], but isn't it used anymore, right?
--
Zikula Italia
SimpleGallery
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
