includes/common.php
changeset 613 c08670a77871
parent 607 935f3799b654
child 650 e45183014778
equal deleted inserted replaced
612:3e73e4996d64 613:c08670a77871
   250 
   250 
   251 $db->free_result();
   251 $db->free_result();
   252 
   252 
   253 profiler_log('Config fetched');
   253 profiler_log('Config fetched');
   254 
   254 
       
   255 if ( defined('ENANO_EXIT_AFTER_CONFIG') )
       
   256 {
       
   257   return true;
       
   258 }
       
   259 
   255 // Now that we have the config, check the Enano version.
   260 // Now that we have the config, check the Enano version.
   256 if ( enano_version(false, true) != $version && !defined('IN_ENANO_UPGRADE') )
   261 if ( enano_version(false, true) != $version && !defined('IN_ENANO_UPGRADE') )
   257 {
   262 {
   258   grinding_halt('Version mismatch', '<p>It seems that the Enano release we\'re trying to run ('.$version.') is different from the version specified in your database ('.enano_version().'). Perhaps you need to <a href="'.scriptPath.'/install/upgrade.php">upgrade</a>?</p>');
   263   grinding_halt('Version mismatch', '<p>It seems that the Enano release we\'re trying to run ('.$version.') is different from the version specified in your database ('.enano_version().'). Perhaps you need to <a href="'.scriptPath.'/install/upgrade.php">upgrade</a>?</p>');
   259 }
   264 }