| 3 |
// $Id$ |
// $Id$ |
| 4 |
// ------------------------------------------------------------------------- |
// ------------------------------------------------------------------------- |
| 5 |
// $Log$ |
// $Log$ |
| 6 |
|
// Revision 1.3 2004/05/13 19:16:45 jonen |
| 7 |
|
// + bugfix related to wrong interpretation of double qoutes at $site->lt->getlt() |
| 8 |
|
// |
| 9 |
// Revision 1.2 2002/12/19 10:33:49 joko |
// Revision 1.2 2002/12/19 10:33:49 joko |
| 10 |
// + debugging and bugfixing |
// + debugging and bugfixing |
| 11 |
// |
// |
| 134 |
//print "db_get_template: '$tpl_name', '$tpl_source', '$smarty_obj'<br>"; |
//print "db_get_template: '$tpl_name', '$tpl_source', '$smarty_obj'<br>"; |
| 135 |
//return $this->site->lt->getlt($tpl_name); |
//return $this->site->lt->getlt($tpl_name); |
| 136 |
global $site; |
global $site; |
| 137 |
if ($template = $site->lt->getlt($tpl_name, array(), 1)) { |
// WAS: (problems with double qoutes!!) |
| 138 |
//print "template: '$template'<br>"; |
//if ($template = $site->lt->getlt($tpl_name, array(), array( 'return' => 1) )) { |
| 139 |
|
// IS - 2004-05-13: |
| 140 |
|
if ($template = $site->localetext->getlt($tpl_name)) { |
| 141 |
|
//print "template: '$template'<br>"; |
| 142 |
$tpl_source = $template; |
$tpl_source = $template; |
| 143 |
return true; |
return true; |
| 144 |
} |
} |