]> git.mxchange.org Git - mailer.git/blobdiff - DOCS/tpl-validator.php
- Introduced generateDateMonthYearSelectionBox() which is suitable for e.g.
[mailer.git] / DOCS / tpl-validator.php
index 6fb9e3c21d226227e8fa82d031c31ab4bc631822..d3e41e271511370ae13ea2631e5e8a4427e07fc8 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -56,15 +56,15 @@ $doc->loadHTMLFile($_SERVER['argv'][1]);
 
 $data = $doc->saveHTML();
 $newData = str_replace("<br>", "<br />\n", $data);
-$newData = str_replace("\n\n", chr(10), $newData);
+$newData = str_replace(PHP_EOL . PHP_EOL, PHP_EOL, $newData);
 
-$array = explode(chr(10), $newData);
+$array = explode(PHP_EOL, $newData);
 array_shift($array);
 array_shift($array);
 unset($array[count($array) - 1]);
 unset($array[count($array) - 1]);
 
-$newData = implode(chr(10), $array).chr(10);
+$newData = implode(PHP_EOL, $array).PHP_EOL;
 
 // Has a template changed?
 if ($data != $newData) {