code cleanup - remove unused var
authorColeman Watts <coleman@civicrm.org>
Fri, 8 Aug 2014 00:22:36 +0000 (01:22 +0100)
committerColeman Watts <coleman@civicrm.org>
Fri, 8 Aug 2014 00:22:36 +0000 (01:22 +0100)
CRM/Core/Smarty/plugins/modifier.crmReplace.php

index d18a8d0dc6fbaa759a20751bb05e5ab26075d12e..7ecf54039e8f2b9cddccba33333991151b4d244c 100644 (file)
@@ -47,9 +47,6 @@
  * @access public
  */
 function smarty_modifier_crmReplace($string, $attribute, $value) {
-  static $endOfElement = '/>';
-
-  // if we know what attribute we need to replace
   // we need to search and replace the string: $attribute=XXX or $attribute="XXX"
   // with $attribute=\"$value\"
   $pattern = '/' . $attribute . '="([^"]+?)"/';