Project

General

Profile

« Previous | Next » 

Revision 1189

Added by Dietmar over 14 years ago

fix some PHP 5.3 deprecated functions

View differences:

template.inc
63 63
 *
64 64
 * Note: If you think that this is like FastTemplates, read carefully. It isn't.
65 65
 *
66
 * Fixes
67
 * Ticket #812 depricated Fix 2009/11/25
66 68
 */
67 69

  
68 70
class Template
......
223 225
  * @return    boolean
224 226
  */
225 227
  function set_root($root) {
226
    if(ereg('/$', $root)) {
228
    if(preg_match ('/\/$/', $root)) {
227 229
      $root = substr($root, 0, -1);
228 230
    }
229 231
    if ($this->debug & 4) {

Also available in: Unified diff