Changeset 2669


Ignore:
Timestamp:
Oct 5, 2008, 11:07:41 PM (16 years ago)
Author:
rub
Message:

Adapt plugin add_index with smarty

Location:
trunk/plugins/add_index/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/add_index/admin/main_page.php

    r2299 r2669  
    125125        foreach (get_add_index_directories($galleries_url) as $dir_galleries)
    126126        {
    127           $file_dest = $dir_galleries.'/'.$conf['add_index_filename'];
     127          $file_dest = str_replace('//', '/', $dir_galleries.'/'.$conf['add_index_filename']);
    128128          if ($overwrite_file or !@file_exists($file_dest))
    129129          {
     
    192192if (count($add_index_results) != 0)
    193193{
    194   foreach ($add_index_results as $result)
    195   {
    196     $template->assign_block_vars('add_index_results.result', array('RESULT' => $result));
    197   }
     194  $template->assign('add_index_results', $add_index_results);
    198195}
    199196
  • trunk/plugins/add_index/admin/main_page.tpl

    r2222 r2669  
    1 <!-- DEV TAG: not smarty migrated -->
    2 <!-- $Id: notification_by_mail.tpl Ruben ARNAUD -->
     1{* $Id$ *}
     2
    33<div class="titrePage">
    4   <h2>{lang:Add_Index}</h2>
     4  <h2>{'Add_Index'|@translate}</h2>
    55</div>
    66
    7 <!-- BEGIN add_index_results -->
     7{if isset($add_index_results)}
    88<div>
    99  <ul>
    10     <!-- BEGIN result -->
    11     <li>{add_index_results.result.RESULT}</li>
    12     <!-- END result -->
     10    {foreach from=$add_index_results item=result}
     11    <li>{$result}</li>
     12    {/foreach}
    1313  </ul>
    1414</div>
    15 <!-- END add_index_results -->
     15{/if}
Note: See TracChangeset for help on using the changeset viewer.