Changeset 6227


Ignore:
Timestamp:
05/18/10 19:23:32 (9 years ago)
Author:
patdenice
Message:

Piwigo 2.1 compatible

Location:
extensions/AdditionalPages
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • extensions/AdditionalPages/admin/admin.tpl

    r3609 r6227  
    99                <tr> 
    1010                        <td><br>{'ap_menu_name'|@translate} : &nbsp;&nbsp;</td> 
    11                         <td><br>{'default_sort'|@translate}&nbsp;&nbsp;</td> 
     11                        <td><br>{'Default'|@translate}&nbsp;&nbsp;</td> 
    1212                        <td><br><input type="text" size="50" maxlength="255" value="{$LANG_DEFAULT_VALUE}" name="menu_lang[default]"/></td> 
    1313                </tr> 
  • extensions/AdditionalPages/index_menu.php

    r3609 r6227  
    2424  if ( ($block = $menu->get_block( 'mbAdditionalPages' ) ) != null ) 
    2525  { 
    26     if (!file_exists(AP_PATH . 'template/' . $user['template'] . '.tpl')) 
    27     { 
    28       $user['template'] = 'yoga'; 
    29     } 
     26    $template->set_template_dir(AP_PATH.'template/'); 
    3027 
    3128    load_language('plugin.lang', AP_PATH); 
     
    107104    { 
    108105      $block->set_title(isset($menu_langs[$user['language']]) ? $menu_langs[$user['language']] : $menu_langs['default']); 
    109       $block->template = dirname(__FILE__) . '/template/' . $user['template'] . '.tpl'; 
     106      $block->template = 'AdditionalPages_menu.tpl'; 
    110107      $block->data = $data; 
    111108    } 
Note: See TracChangeset for help on using the changeset viewer.