diff --git a/NEWS b/NEWS
index 8606628b..da5bea62 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+ - fixed the name of clear_compile_tpl() API function to clear_compiled_tpl.
+ (Andrei)
- added fix for removing comments so that the line numbers are reported
correctly in case of errors. (patch from Anders Janson)
- made html_options output xhtml compatible code. (Monte, Arnaud Limbourg)
diff --git a/Smarty.class.php b/Smarty.class.php
index 104b1655..3d7a5b48 100644
--- a/Smarty.class.php
+++ b/Smarty.class.php
@@ -435,7 +435,7 @@ class Smarty
or all compiled template files if one is not specified.
This function is for advanced use only, not normally needed.
\*======================================================================*/
- function clear_compile_tpl($tpl_file = null, $compile_id = null)
+ function clear_compiled_tpl($tpl_file = null, $compile_id = null)
{
return $this->_rm_auto($this->compile_dir, $tpl_file, $compile_id);
}
diff --git a/docs.sgml b/docs.sgml
index 4abf09e9..48abe829 100644
--- a/docs.sgml
+++ b/docs.sgml
@@ -384,7 +384,7 @@ require_once(SMARTY_DIR."Smarty.class.php");
will *not* see the change since the template will not get
recompiled. See $force_compile or clear_compile_dir.
+ linkend="api.clear.compile.dir">clear_compiled_tpl.
@@ -798,8 +798,8 @@ $smarty->clear_all_cache();
-
- clear_compile_dir
+
+ clear_compiled_tplvoid clear_all_cache
@@ -812,14 +812,14 @@ $smarty->clear_all_cache();
This function is for advanced use only, not normally needed.
-clear_compile_dir
+clear_compiled_tpl
// clear a specific template resource
-$smarty->clear_compile_dir("index.tpl");
+$smarty->clear_compiled_tpl("index.tpl");
// clear entire compile directory
-$smarty->clear_compile_dir();
+$smarty->clear_compiled_tpl();
diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php
index 104b1655..3d7a5b48 100644
--- a/libs/Smarty.class.php
+++ b/libs/Smarty.class.php
@@ -435,7 +435,7 @@ class Smarty
or all compiled template files if one is not specified.
This function is for advanced use only, not normally needed.
\*======================================================================*/
- function clear_compile_tpl($tpl_file = null, $compile_id = null)
+ function clear_compiled_tpl($tpl_file = null, $compile_id = null)
{
return $this->_rm_auto($this->compile_dir, $tpl_file, $compile_id);
}