4images Help / Hilfe > Bug Fixes & Patches

[1.7] Cant display \\# (i.e \\2 or \\4 or \\9)

(1/1)

V@no:
By default 4images replaces all \\xx (where xx is number 0-9)  with \\1
For testing purpose, try add anywhere (in any template or any variable that will be printed in a template) this: \\7 u'll see that it will be replaced by \\1
to fix that, in /includes/template.php remove marked:
--- Quote ---  function clean_template($template) {
    $search_array = array(
      "/".$this->start."[^ \t\r\n".$this->end."]+".$this->end."/",
      "/".$this->start."if[ \t\r\n]+[^ \t\r\n".$this->end."]+".$this->end."/",
      "/".$this->start."endif[ \t\r\n]+[^ \t\r\n".$this->end."]+".$this->end."/",
      "/$([0-9])/",
      "/\([0-9])/"
    );
    $replace_array = array(
      "",
      "",
      "",
      '$\1',
      '\\\1'
    );
--- End quote ---

NOTE: dont forget delete comas!

Navigation

[0] Message Index

Go to full version