« 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: /var/www/designv/data/www/design-voronov.com/assets/snippets/phpthumb/phpThumb.config.php 
  Line: 30 
  Line 30 source: $PHPTHUMB_CONFIG['document_root'] = realpath((getenv('DOCUMENT_ROOT') && ereg('^'.preg_quote(realpath(getenv('DOCUMENT_ROOT'))), realpath(__FILE__))) ? getenv('DOCUMENT_ROOT') : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace(DIRECTORY_SEPARATOR, '/', dirname(__FILE__))));  
 
Parser timing
  MySQL: 0.0115 s(64 Requests)
  PHP: 0.0552 s 
  Total: 0.0668 s