]> projects.mako.cc - scuttle/blobdiff - services/templateservice.php
initial patch to cause scuttle to work with PHP 8.2
[scuttle] / services / templateservice.php
index 1a1719c880dc048a537cdd55d3162a48d79ddcb3..6675462ba93bd09afc7ad9b8c1b435903449972c 100644 (file)
@@ -10,7 +10,7 @@ class TemplateService {
     return $instance;
   }
 
-  function TemplateService() {
+  function __construct() {
     $this->basedir = $GLOBALS['TEMPLATES_DIR'];    
   }
 
@@ -29,7 +29,7 @@ class Template {
   var $file = '';
   var $templateservice;
 
-  function Template($file, $vars = NULL, &$templateservice) {
+  function __construct($file, $vars = NULL, &$templateservice) {
     $this->vars = $vars;
     $this->file = $file;
     $this->templateservice = $templateservice; 

Benjamin Mako Hill || Want to submit a patch?