aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/add_index/admin/main_page.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2008-10-05 21:07:41 +0000
committerrub <rub@piwigo.org>2008-10-05 21:07:41 +0000
commit0bdc6a5dac8ee12cf630b42e4a8d6a0be4116ae2 (patch)
tree1bea988329d09e905d79ff2fa7c61ec8028e2266 /plugins/add_index/admin/main_page.php
parent308fda55f5d9976f1229fa05bad7ab1da65f9061 (diff)
Adapt plugin add_index with smarty
git-svn-id: http://piwigo.org/svn/trunk@2669 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/add_index/admin/main_page.php')
-rw-r--r--plugins/add_index/admin/main_page.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/add_index/admin/main_page.php b/plugins/add_index/admin/main_page.php
index 3b1609629..20b724d65 100644
--- a/plugins/add_index/admin/main_page.php
+++ b/plugins/add_index/admin/main_page.php
@@ -124,7 +124,7 @@ order by
//echo $galleries_url.'<BR>';
foreach (get_add_index_directories($galleries_url) as $dir_galleries)
{
- $file_dest = $dir_galleries.'/'.$conf['add_index_filename'];
+ $file_dest = str_replace('//', '/', $dir_galleries.'/'.$conf['add_index_filename']);
if ($overwrite_file or !@file_exists($file_dest))
{
if (copy($index_file_src, $file_dest))
@@ -188,13 +188,10 @@ else
// | template initialization |
// +-----------------------------------------------------------------------+
$template->set_filenames(array('main_page' => dirname(__FILE__).'/main_page.tpl'));
-
+
if (count($add_index_results) != 0)
{
- foreach ($add_index_results as $result)
- {
- $template->assign_block_vars('add_index_results.result', array('RESULT' => $result));
- }
+ $template->assign('add_index_results', $add_index_results);
}
// +-----------------------------------------------------------------------+