Changeset 217


Ignore:
Timestamp:
Dec 13, 2006 12:44:25 AM (17 years ago)
Author:
scdev
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/2.0.2/lib/Email.inc.php

    r126 r217  
    190190        // Apply regex pattern to search elements.
    191191        $search = array_keys($replacements);
    192         array_walk($search, create_function('&$v', '$v = "/{" . preg_quote($v) . "}/i";'));
     192        array_walk($search, create_function('&$v', '$v = "{" . strtoupper($v) . "}";'));
    193193
    194194        // Replacement values.
     
    196196
    197197        // Search and replace all values at once.
    198         $this->_template_replaced = preg_replace($search, $replace, $this->_template);
     198        $this->_template_replaced = str_replace($search, $replace, $this->_template);
    199199    }
    200200
Note: See TracChangeset for help on using the changeset viewer.