Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
eSilverStrike committed Apr 11, 2022
1 parent f922d41 commit cdc2979
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions system/classes/template.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1770,8 +1770,7 @@ private function cache_write($filename, $tmplt)
$tmplt = $this->replace_vars($tmplt);

// clean up concatenation.
$tmplt = str_replace('?' . '><' . '?php ', // makes the cache file easier on the eyes (need the concat to avoid PHP interpreting the ? >< ?php incorrectly
"\n", $tmplt);
$tmplt = str_replace('?' . '><' . '?php ', "\n", $tmplt); // makes the cache file easier on the eyes (need the concat to avoid PHP interpreting the ? >< ?php incorrectly)

if ($this->debug & 4) {
printf("<b>cache_write:</b> opening $filename<br>\n");
Expand Down Expand Up @@ -1951,8 +1950,7 @@ private function compile_blocks($parent)
$tmplt = $this->replace_vars($tmplt);

// clean up concatenation.
$tmplt = str_replace('?' . '><' . '?php ', // makes the cache file easier on the eyes (need the concat to avoid PHP interpreting the ? >< ?php incorrectly
"\n", $tmplt);
$tmplt = str_replace('?' . '><' . '?php ', "\n", $tmplt); // makes the cache file easier on the eyes (need the concat to avoid PHP interpreting the ? >< ?php incorrectly)

$this->blocks[$parent[1]] = $tmplt;
}
Expand Down Expand Up @@ -2014,8 +2012,7 @@ private function compile_template($varName, $filename, $isFile = true)
$tmplt = $this->replace_vars($tmplt);

// clean up concatenation.
$tmplt = str_replace('?' . '><' . '?php ', // makes the cache file easier on the eyes (need the concat to avoid PHP interpreting the ? >< ?php incorrectly
"\n", $tmplt);
$tmplt = str_replace('?' . '><' . '?php ', "\n", $tmplt); // makes the cache file easier on the eyes (need the concat to avoid PHP interpreting the ? >< ?php incorrectly)

return $tmplt;
}
Expand Down

0 comments on commit cdc2979

Please sign in to comment.