/[cvs]/nfo/php/libs/org.netfrag.flib/Site/Template.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.flib/Site/Template.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by joko, Thu Dec 19 10:33:49 2002 UTC revision 1.3 by jonen, Thu May 13 19:16:45 2004 UTC
# Line 3  Line 3 
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  //  //
# Line 131  function db_get_template($tpl_name, &$tp Line 134  function db_get_template($tpl_name, &$tp
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    }    }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed