mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-02 13:21:36 +01:00
- bugfix wrong parameter on compileAllTemplates() and compileAllConfig() https://github.com/smarty-php/smarty/issues/231
This commit is contained in:
@@ -17,7 +17,6 @@ class Smarty_Internal_Method_CompileAllConfig extends Smarty_Internal_Method_Com
|
||||
*
|
||||
* @api Smarty::compileAllConfig()
|
||||
*
|
||||
* @param \Smarty $dummy smarty object of calling instance
|
||||
* @param \Smarty $smarty passed smarty object
|
||||
* @param string $extension file extension
|
||||
* @param bool $force_compile force all to recompile
|
||||
@@ -26,8 +25,8 @@ class Smarty_Internal_Method_CompileAllConfig extends Smarty_Internal_Method_Com
|
||||
*
|
||||
* @return int number of template files recompiled
|
||||
*/
|
||||
public function compileAllConfig(Smarty $dummy, Smarty $smarty, $extension = '.conf', $force_compile = false,
|
||||
$time_limit = 0, $max_errors = null)
|
||||
public function compileAllConfig(Smarty $smarty, $extension = '.conf', $force_compile = false, $time_limit = 0,
|
||||
$max_errors = null)
|
||||
{
|
||||
return $this->compileAll($smarty, $extension, $force_compile, $time_limit, $max_errors, true);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ class Smarty_Internal_Method_CompileAllTemplates
|
||||
*
|
||||
* @api Smarty::compileAllTemplates()
|
||||
*
|
||||
* @param \Smarty $dummy smarty object of calling instance
|
||||
* @param \Smarty $smarty passed smarty object
|
||||
* @param string $extension file extension
|
||||
* @param bool $force_compile force all to recompile
|
||||
@@ -62,7 +61,8 @@ class Smarty_Internal_Method_CompileAllTemplates
|
||||
$sourceDir = $isConfig ? $smarty->getConfigDir() : $smarty->getTemplateDir();
|
||||
// loop over array of source directories
|
||||
foreach ($sourceDir as $_dir) {
|
||||
$_dir_1 = new RecursiveDirectoryIterator($_dir, defined('FilesystemIterator::FOLLOW_SYMLINKS') ? FilesystemIterator::FOLLOW_SYMLINKS : 0);
|
||||
$_dir_1 = new RecursiveDirectoryIterator($_dir, defined('FilesystemIterator::FOLLOW_SYMLINKS') ?
|
||||
FilesystemIterator::FOLLOW_SYMLINKS : 0);
|
||||
$_dir_2 = new RecursiveIteratorIterator($_dir_1);
|
||||
foreach ($_dir_2 as $_fileinfo) {
|
||||
$_file = $_fileinfo->getFilename();
|
||||
|
||||
Reference in New Issue
Block a user