Changeset 31820


Ignore:
Timestamp:
May 18, 2017, 11:53:53 AM (3 years ago)
Author:
plg
Message:

compatibility Piwigo 2.9, avoid mixing with the new core "messages" template var

Location:
extensions/Admin_Messages
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/Admin_Messages/admin/list.php

    r12356 r31820  
    3737    } 
    3838   
    39     $template->append('messages', $item);
     39    $template->append('am_messages', $item);
    4040  }
    4141 
  • extensions/Admin_Messages/admin/template/list.tpl

    r29309 r31820  
    55</div>
    66
    7 {if !isset($messages)}
     7{if !isset($am_messages)}
    88  {'No message'|@translate}<br>
    99  <a href="{$AM_ADMIN}&tab=new">{'Add a message'|@translate}</a>
     
    1212<form id="categoryOrdering">
    1313  <ul class="categoryUl">
    14     {foreach from=$messages item=message}
     14    {foreach from=$am_messages item=message}
    1515      <li class="categoryLi virtual_cat">
    1616        <div class="head"><b>{$message.AUTHOR}</b> - <i>{$message.DATE}</i></div>
  • extensions/Admin_Messages/admin_messages.php

    r12356 r31820  
    2626    } 
    2727   
    28     $template->append('messages', $item);
     28    $template->append('am_messages', $item);
    2929  }
    3030 
  • extensions/Admin_Messages/template/admin_messages.tpl

    r17841 r31820  
    2828      <fieldset>
    2929     
    30         {if isset($messages)}
     30        {if isset($am_messages)}
    3131        <table class="table2" id="AM_table">
    3232         
    33           {foreach from=$messages item=message name=loop}
     33          {foreach from=$am_messages item=message name=loop}
    3434            <tr class="{if $smarty.foreach.loop.index is odd}row2{else}row1{/if}">
    3535              <td>
Note: See TracChangeset for help on using the changeset viewer.