Fork me on GitHub

Different between $GLOBALS['PNConfig']['System'][$name] and $GLOBALS['pnconfig'][$name]  Bottom

  • 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
  • Because it are arrays, not uniques variables.

    Edited, icon_redface
    What I was thinking about?




    edited by: gerkynet, Oct 01, 2006 - 04:01 AM
  • Looks like a bug to me.... one which is now fixed in subversion.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • 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
  • 0 users

This list is based on users active over the last 60 minutes.