]> git.wh0rd.org - tt-rss.git/blobdiff - lib/MiniTemplator.class.php
pngcrush.sh
[tt-rss.git] / lib / MiniTemplator.class.php
index 69281cb5ee9e9841875e4104073c71ffd56b207b..e70f0a47094453ba526a146f3c0ce3851248043a 100644 (file)
@@ -160,7 +160,7 @@ var $outputString;                    // string buffer for the generated HTML pa
 * Constructs a MiniTemplator object.\r
 * @access public\r
 */\r
-function MiniTemplator() {\r
+function __construct() {\r
    $this->templateValid = false; }\r
 \r
 //--- template string handling --------------------------------------------------------------------------------------\r
@@ -336,7 +336,7 @@ function processBeginBlockCmd ($parms, $cmdTPosBegin, $cmdTPosEnd) {
    $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
@@ -844,7 +844,7 @@ function readFileIntoString ($fileName, &$s) {
    $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