function updateArtio()
 {
     global $mainframe;
     ob_start();
     $result = false;
     $artioSefPath = $mainframe->getCfg('absolute_path') . DS . 'administrator' . DS . 'components' . DS . 'com_sef';
     $artioSefCfg = $artioSefPath . DS . 'config.sef.php';
     $artioSefClass = $artioSefPath . DS . 'sef.class.php';
     if (!is_file($artioSefCfg)) {
         $artioSefCfg = $artioSefPath . DS . 'configuration.php';
         $artioSefClass = $artioSefPath . DS . 'classes' . DS . 'config.php';
     }
     if (is_file($artioSefCfg) && is_writable($artioSefCfg)) {
         global $sef_config_file;
         if (empty($sef_config_file)) {
             $sef_config_file = $artioSefCfg;
         }
         include_once $artioSefClass;
         if (class_exists('SEFConfig')) {
             $sefConfig = new SEFConfig();
             if (!in_array('com_jcomments', $sefConfig->skip)) {
                 $sefConfig->skip[] = 'com_jcomments';
                 $sefConfig->saveConfig(0, 1);
                 $fn = dirname(__FILE__) . DS . 'configuration.php';
                 if (is_file($fn)) {
                     @rename($fn, $artioSefCfg);
                 }
                 $result = true;
             }
         }
     }
     ob_get_contents();
     ob_end_clean();
     return $result;
 }