Changeset 25356


Ignore:
Timestamp:
11/06/13 12:20:43 (6 years ago)
Author:
plg
Message:

compatibility with theme Stripped

File:
1 edited

Legend:

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

    r23893 r25356  
    6161function dlsize_picture_prefilter($content, &$smarty) 
    6262{ 
    63   $pattern = '#\{if isset\(\$current\.U_DOWNLOAD\)\}\s*<a #'; 
    64   $replacement = '{if isset($current.U_DOWNLOAD)}<a id="downloadSizeLink" '; 
    65   $content = preg_replace($pattern, $replacement, $content); 
     63  $pattern = '<a href="{$current.U_DOWNLOAD}"'; 
     64  $replacement = '<a id="downloadSizeLink" href="{$current.U_DOWNLOAD}"'; 
     65  $content = str_replace($pattern, $replacement, $content); 
    6666 
    6767  return $content; 
Note: See TracChangeset for help on using the changeset viewer.