Ignore:
Timestamp:
May 14, 2012, 9:22:23 PM (12 years ago)
Author:
flop25
Message:

PHPWG_VERSION assigned and correction of the use of strpos in tpl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/floOS/OS_default/template/picture_nav_buttons.tpl

    r14652 r14974  
    2121{if isset($next) }
    2222<a class="navThumb" id="thumbNext" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" rel="next">
    23   {if strpos('2.4',$PHPWG_VERSION)}
     23  {assign var=Pwg_VERSION value=strpos('2.4',$PHPWG_VERSION) }
     24  {if isset($Pwg_VERSION) and $Pwg_VERSION!==false }
    2425  <img src="{$next.derivatives.square->get_url()}" class="thumbLink" id="linkNext" alt="{$next.TITLE}">
    2526  {else}
     
    2829</a>
    2930{/if}
    30   {if strpos('2.4',$PHPWG_VERSION)}
     31  {if isset($Pwg_VERSION) and $Pwg_VERSION!==false }
    3132        <img src="{$current.derivatives.square->get_url()}" class="thumbLink" id="thumbCurrent" alt="{$ALT_IMG}">
    3233  {else}
     
    3536{if isset($previous) }
    3637<a class="navThumb" id="thumbPrev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev">
    37   {if strpos('2.4',$PHPWG_VERSION)}
     38  {if isset($Pwg_VERSION) and $Pwg_VERSION!==false }
    3839  <img src="{$previous.derivatives.square->get_url()}" class="thumbLink" id="linkPrev" alt="{$previous.TITLE}">
    3940  {else}
Note: See TracChangeset for help on using the changeset viewer.