diff --git a/NEWS b/NEWS index da7fb852..3751c4b8 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ + - move $version to internal variable, remove from docs (Monte) - cleaned up compiled templates global scope by moving some variables into the class itself. (Andrei) - fixed a bug that would not allow referring to a section in the including diff --git a/Smarty.class.php b/Smarty.class.php index ac38551e..b46c537f 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -130,7 +130,6 @@ class Smarty 'count_paragraphs' => 'smarty_mod_count_paragraphs' ); - var $version = '1.4.1'; // Smarty version number var $show_info_header = false; // display HTML info header at top of page output var $compiler_class = 'Smarty_Compiler'; // the compiler class used by @@ -150,6 +149,7 @@ class Smarty var $_sections = array(); // keeps track of sections var $_conf_obj = null; // configuration object var $_smarty_md5 = 'f8d698aea36fcbead2b9d5359ffca76f'; // md5 checksum of the string 'Smarty' + var $_version = '1.4.1'; // Smarty version number /*======================================================================*\ diff --git a/Smarty_Compiler.class.php b/Smarty_Compiler.class.php index 2b0853a2..1b8a8808 100644 --- a/Smarty_Compiler.class.php +++ b/Smarty_Compiler.class.php @@ -145,7 +145,7 @@ class Smarty_Compiler extends Smarty { } // put header at the top of the compiled template - $template_header = "version.", created on ".strftime("%Y-%m-%d %H:%M:%S")."\n"; + $template_header = "_version.", created on ".strftime("%Y-%m-%d %H:%M:%S")."\n"; $template_header .= " compiled from ".$tpl_file." */ ?>\n"; $template_compiled = $template_header.$template_compiled; diff --git a/docs.sgml b/docs.sgml index f1b0ddcd..3f01662f 100644 --- a/docs.sgml +++ b/docs.sgml @@ -14,7 +14,7 @@