includes/lang.php
changeset 519 94214ec0871c
parent 516 9a52679143db
child 536 218a627eb53e
--- a/includes/lang.php	Sun Apr 06 14:02:20 2008 -0400
+++ b/includes/lang.php	Sun Apr 06 15:30:39 2008 -0400
@@ -389,8 +389,7 @@
     $contents =& $block[0]['value'];
     
     // Trim off all text before and after the starting and ending braces
-    $contents = preg_replace('/^([^{]+)\{/', '{', $contents);
-    $contents = preg_replace('/\}([^}]+)$/', '}', $contents);
+    $contents = enano_trim_json($contents);
     
     // Correct syntax to be nice to the json parser
     $contents = enano_clean_json($contents);