Fork me on GitHub

modification une DBConnectionStack  Bottom

  • Hi all,
    I've made a modification in this file to access to a database without using push and pop primitives.
    Is it possible to integrate that in official version ?


    function getConnection ($fetchmode=ADODB_FETCH_NUM, $name=null)
    {
    if (!isset($GLOBALS['PNRuntime']['DB']) && defined('_PNINSTALLVER')) {
    return;
    }

    $count = count($GLOBALS['PNRuntime']['DB']);
    if (!$count) {
    if (defined('_PNINSTALLVER')) {
    return;
    } else {
    return pn_exit ('Attempted to get connection from empty connection stack ...');
    }
    }

    $conn = $GLOBALS['PNRuntime']['DB'][$count-1]['dbconn'];

    if ($name)
    {
    $i = 0;
    for ($i=0 ; $i
  • Hi,

    please put it as a patch into a new Cozi ticket at http://code.zikula.org/core
    This way it won't get forgotten.

    --
    Guite | ModuleStudio

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