Changeset 25356
- Timestamp:
- Nov 6, 2013, 12:20:43 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/download_by_size/main.inc.php
r23893 r25356 61 61 function dlsize_picture_prefilter($content, &$smarty) 62 62 { 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); 66 66 67 67 return $content;
Note: See TracChangeset
for help on using the changeset viewer.