diff --git a/action.default.php b/action.default.php index 9c6a012e21b3dde9e3ee2574d0898ed875223a08..b660e49236ca570b4a5d34b1feffac53116caf56 100644 --- a/action.default.php +++ b/action.default.php @@ -268,7 +268,7 @@ if (count($records) == $limit) { } $smarty->assign('num_records',count($records)); $smarty->assign('text_num_records',$numRec); -$smarty->assign_by_ref('records',$records); +$smarty->assign('records',$records); //echo '<pre>'; print_r($query); echo '</pre>'; if ($style == 'full' || $style = 'short') { diff --git a/action.showpublication.php b/action.showpublication.php index cc0b48a2033252bc0032d4b1d88ea531dcdd5fde..a5264e3156a650e2d1e98e1022db5dad2d9a2331 100644 --- a/action.showpublication.php +++ b/action.showpublication.php @@ -67,7 +67,7 @@ $place = $this->CreateInputSubmit($id,'showBibtex',$label); $smarty->assign('toggleBibtex',$place); $publications = array($publication); -$smarty->assign_by_ref('publications',$publications); +$smarty->assign('publications',$publications); $smarty->assign('title', 'Publication: '.$artkey); if (isset($publication->errorMessage)) { echo $publication->errorMessage; diff --git a/lib/class.PublicationDB.php b/lib/class.PublicationDB.php index 11940c39dbbb219ae557dc18bcaa799ec8bfd0ce..7788e13dae76f6d0946da188e2e04197bc29e1be 100644 --- a/lib/class.PublicationDB.php +++ b/lib/class.PublicationDB.php @@ -6,9 +6,10 @@ class PublicationDB { private $PDB; private function __construct() { - global $gCms; - if (!isset($gCms)) exit; - $config =& $gCms->GetConfig(); + //global $gCms; + //if (!isset($gCms)) exit; + //$config =& $gCms->GetConfig(); + $config = cms_utils::get_config(); //$this->PDB = ADONewConnection($config['dbms']); $this->PDB = ADONewConnection($config['dbms'], 'pear:date:extend:transaction');