Changeset 23228


Ignore:
Timestamp:
Jun 15, 2013, 3:18:37 PM (7 years ago)
Author:
flop25
Message:

more universal prefilter

File:
1 edited

Legend:

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

    r14971 r23228  
    4646function ppaT($content, &$smarty)
    4747 {
    48  
    49   $search = '#<div id="piwigoAbout">#';
    50      
    51   $replacement = '<div id="piwigoAbout"><div id="persoabout">{$PERSO_ABOUT}</div>';
    52 
    53   return preg_replace($search, $replacement, $content);
     48  $search = '{$ABOUT_MESSAGE}';
     49  $replacement = '<div id="persoabout">{$PERSO_ABOUT}</div>
     50  {$ABOUT_MESSAGE}';
     51  return str_replace($search, $replacement, $content);
    5452}
    5553?>
Note: See TracChangeset for help on using the changeset viewer.