]> git.wh0rd.org - tt-rss.git/blobdiff - lib/MiniTemplator.class.php
remove floicon because its author is a colossal shitlord (http://tt-rss.org/forum...
[tt-rss.git] / lib / MiniTemplator.class.php
index 69281cb5ee9e9841875e4104073c71ffd56b207b..a139473f95f955f6f8e215555fbc684b768db7ff 100644 (file)
@@ -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