Changeset 7755


Ignore:
Timestamp:
Nov 13, 2010, 8:29:39 AM (10 years ago)
Author:
ddtddt
Message:

[extensions] - Piwigo Donate - open other windows / compatible with sobre

Location:
extensions/Piwigodonate
Files:
4 added
1 edited

Legend:

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

    r7751 r7755  
    2727function PiwigodonateT($content, &$smarty)
    2828 {
    29   $search = '#<span class="Piwigo">Piwigo</span></a>#';
     29  $search = '#<span class="Piwigo">.*?</span></a>#';
    3030 
    31   $replacement = '<span class="Piwigo">Piwigo</span></a> - <a href="{$DONATE}" class="Piwigo">{\'Donate_to_Piwigo\'|@translate}</a>';
     31  $replacement = '<span class="Piwigo">Piwigo</span></a> - <a href="{$DONATE}" target="_bank" class="Piwigo">{\'Donate_to_Piwigo\'|@translate}</a>';
    3232
    3333  return preg_replace($search, $replacement, $content);
Note: See TracChangeset for help on using the changeset viewer.