* Constructs a MiniTemplator object.\r
* @access public\r
*/\r
-function MiniTemplator() {\r
+function __construct() {\r
$this->templateValid = false; }\r
\r
//--- template string handling --------------------------------------------------------------------------------------\r
$this->openBlocksTab[$this->currentNestingLevel] = $blockNo;\r
$this->currentNestingLevel += 1;\r
if ($this->currentNestingLevel > $this->maxNestingLevel) {\r
- $trhis->triggerError ("Block nesting overflow in template at offset $cmdTPosBegin.");\r
+ $this->triggerError ("Block nesting overflow in template at offset $cmdTPosBegin.");\r
return false; }\r
return true; }\r
\r
$fh = fopen($fileName,"rb");\r
if ($fh === false) return false;\r
$fileSize = filesize($fileName);\r
- if ($fileSize === false) {close ($fh); return false; }\r
+ if ($fileSize === false) {fclose ($fh); return false; }\r
$s = fread($fh,$fileSize);\r
fclose ($fh);\r
if (strlen($s) != $fileSize) return false;\r