includes/lang.php
changeset 519 94214ec0871c
parent 516 9a52679143db
child 536 218a627eb53e
equal deleted inserted replaced
518:2b826f2640e9 519:94214ec0871c
   387       return false;
   387       return false;
   388     
   388     
   389     $contents =& $block[0]['value'];
   389     $contents =& $block[0]['value'];
   390     
   390     
   391     // Trim off all text before and after the starting and ending braces
   391     // Trim off all text before and after the starting and ending braces
   392     $contents = preg_replace('/^([^{]+)\{/', '{', $contents);
   392     $contents = enano_trim_json($contents);
   393     $contents = preg_replace('/\}([^}]+)$/', '}', $contents);
       
   394     
   393     
   395     // Correct syntax to be nice to the json parser
   394     // Correct syntax to be nice to the json parser
   396     $contents = enano_clean_json($contents);
   395     $contents = enano_clean_json($contents);
   397     
   396     
   398     try
   397     try