« MODx Parse Error »

MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
 
PHP error debug
  Error: Function ereg() is deprecated 
  Error type/ Nr.: - 8192 
  File: /home/stkildag/public_html/manager/includes/tmplvars.format.inc.php 
  Line: 238 
  Line 238 source: if(strpos($value,'-')!==false && ereg($date_match, $value, $matches)) {  
 
Parser timing
  MySQL: 0.0234 s(8 Requests)
  PHP: 0.0650 s 
  Total: 0.0884 s 
Error while inserting event log into database.