X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=DOCS%2Ftpl-validator.php;h=d5f3c055aa9eb309561c73eb26667da6ee3197b6;hp=1bfedac7afe09818415b6367d82cf82f9d3b4f7a;hb=4fbb69b66564237c51d4eaf8c82d0d8cdfcf84a0;hpb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60 diff --git a/DOCS/tpl-validator.php b/DOCS/tpl-validator.php index 1bfedac7af..d5f3c055aa 100644 --- a/DOCS/tpl-validator.php +++ b/DOCS/tpl-validator.php @@ -14,11 +14,10 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -51,7 +50,7 @@ print "Validating template ".$_SERVER['argv'][1]."...\n"; $doc = new DOMDocument(); $doc->formatOutput = true; $doc->preserveWhiteSpace = false; -$doc->encoding = 'utf-8'; +$doc->encoding = 'UTF-8'; $doc->xmlVersion = '1.1'; $doc->loadHTMLFile($_SERVER['argv'][1]); @@ -76,7 +75,7 @@ if ($data != $newData) { print "Template ".$_SERVER['argv'][1]." might be issue-free.\n"; } -if (strtolower($_SERVER['arv'][2]) == '--write') { +if ((isset($_SERVER['arv'][2])) && (strtolower($_SERVER['arv'][2]) == '--write')) { print "Writing document...\n"; file_put_contents($_SERVER['argv'][1], $data); } // END - if