X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=RooGetTrait.php;h=162ebce1d0e998dc6863e32dbb7e31b2835e16de;hp=e47155c6c6d80f7710f37e91cd45db6c8614492b;hb=refs%2Fheads%2Fwip_edward_T5851_download_old_offer_sheet;hpb=e569c736395279f67f2c140a9a55d65ee7d20429 diff --git a/RooGetTrait.php b/RooGetTrait.php index e47155c6..162ebce1 100644 --- a/RooGetTrait.php +++ b/RooGetTrait.php @@ -107,7 +107,8 @@ trait Pman_Core_RooGetTrait { PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($this, 'onPearError')); - $tab = array_shift(explode('/', $tab)); + $explode_tab = explode('/', $tab); + $tab = array_shift($explode_tab); $x = $this->dataObject($tab); @@ -301,6 +302,7 @@ trait Pman_Core_RooGetTrait { $cols = $x->table(); $excols = array_keys($this->cols); + //print_R($excols); if (isset($x->_extra_cols)) { $excols = array_merge($excols, $x->_extra_cols); @@ -433,7 +435,7 @@ trait Pman_Core_RooGetTrait { $cols = array_keys($data[0]); $options = &PEAR::getStaticProperty('DB_DataObject','options'); - $reader = $options["ini_{$x->_database}"] .'.reader'; + $reader = $options["ini_{$x->databaseNickname()}"] .'.reader'; if (!file_exists( $reader )) { return; }