Skip to content
Snippets Groups Projects
Commit 105846af authored by Leif Andersson's avatar Leif Andersson
Browse files

Changes to handle cmsms-2.1.3

parent 6f3ea77d
Branches
No related tags found
No related merge requests found
Pipeline #
...@@ -268,7 +268,7 @@ if (count($records) == $limit) { ...@@ -268,7 +268,7 @@ if (count($records) == $limit) {
} }
$smarty->assign('num_records',count($records)); $smarty->assign('num_records',count($records));
$smarty->assign('text_num_records',$numRec); $smarty->assign('text_num_records',$numRec);
$smarty->assign_by_ref('records',$records); $smarty->assign('records',$records);
//echo '<pre>'; print_r($query); echo '</pre>'; //echo '<pre>'; print_r($query); echo '</pre>';
if ($style == 'full' || $style = 'short') { if ($style == 'full' || $style = 'short') {
......
...@@ -67,7 +67,7 @@ $place = $this->CreateInputSubmit($id,'showBibtex',$label); ...@@ -67,7 +67,7 @@ $place = $this->CreateInputSubmit($id,'showBibtex',$label);
$smarty->assign('toggleBibtex',$place); $smarty->assign('toggleBibtex',$place);
$publications = array($publication); $publications = array($publication);
$smarty->assign_by_ref('publications',$publications); $smarty->assign('publications',$publications);
$smarty->assign('title', 'Publication: '.$artkey); $smarty->assign('title', 'Publication: '.$artkey);
if (isset($publication->errorMessage)) { if (isset($publication->errorMessage)) {
echo $publication->errorMessage; echo $publication->errorMessage;
......
...@@ -6,9 +6,10 @@ class PublicationDB { ...@@ -6,9 +6,10 @@ class PublicationDB {
private $PDB; private $PDB;
private function __construct() { private function __construct() {
global $gCms; //global $gCms;
if (!isset($gCms)) exit; //if (!isset($gCms)) exit;
$config =& $gCms->GetConfig(); //$config =& $gCms->GetConfig();
$config = cms_utils::get_config();
//$this->PDB = ADONewConnection($config['dbms']); //$this->PDB = ADONewConnection($config['dbms']);
$this->PDB = ADONewConnection($config['dbms'], $this->PDB = ADONewConnection($config['dbms'],
'pear:date:extend:transaction'); 'pear:date:extend:transaction');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment