Changeset 29818


Ignore:
Timestamp:
Sep 27, 2014, 10:54:44 PM (10 years ago)
Author:
flop25
Message:

2.7 compat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/imgpreview/main.inc.php

    r23617 r29818  
    5050        global $template;
    5151  $search = 'href="{$thumbnail.URL}"';
    52   if ( defined('PHPWG_VERSION') and (strpos(PHPWG_VERSION, "2.4")!==false or  strpos(PHPWG_VERSION, "2.5")!==false or  strpos(PHPWG_VERSION, "2.6")!==false) )
     52  if ( defined('PHPWG_VERSION') and (strpos(PHPWG_VERSION, "2.4")!==false or  strpos(PHPWG_VERSION, "2.5")!==false or  strpos(PHPWG_VERSION, "2.6")!==false) or  strpos(PHPWG_VERSION, "2.7")!==false) )
    5353  {
    5454  $replacement = 'href="{$thumbnail.URL}" {define_derivative name=\'derivative_imgprev\' width=$imgpreview.width height=$imgpreview.height crop=false}{assign var=d_imgprev value=$pwg->derivative($derivative_imgprev, $thumbnail.src_image)} imgsrc="{$d_imgprev->get_url()}" data-tittle="{$thumbnail.NAME}"';
Note: See TracChangeset for help on using the changeset viewer.