Project

General

Profile

« Previous | Next » 

Revision 1689

Added by darkviper over 12 years ago

fixed Errorhandling for old class.database

View differences:

upgrade-script.php
23 23
$admin = new admin('Addons', 'modules', false, false);
24 24

  
25 25
$oldVersion  = 'Version '.WB_VERSION;
26
$oldVersion .= (defined('WB_SP') ? '.'.WB_SP : '');
26
$oldVersion .= (defined('WB_SP') ? WB_SP : '');
27 27
$oldRevision = (defined('WB_REVISION') ? ' Revision ['.WB_REVISION.'] ' : '') ;
28 28
$newVersion  = 'Version '.VERSION;
29
$newVersion .= (defined('SP') ? '.'.SP : '');
29
$newVersion .= (defined('SP') ? SP : '');
30 30
$newRevision = (defined('REVISION') ? ' Revision ['.REVISION.'] ' : '');
31 31

  
32 32
// set addition settings if not exists, otherwise upgrade will be breaks
......
65 65
			'[ADMIN]/pages/settings2.php',
66 66

  
67 67
			'[FRAMEWORK]/class.msg_queue.php',
68
			'[FRAMEWORK]/class.database.php',
68
			'[FRAMEWORK]/class.logfile.php',
69
//			'[FRAMEWORK]/class.database.php',
69 70

  
70 71
		 );
71 72

  
......
453 454

  
454 455
echo (db_update_key_value( 'settings', $cfg ) ? " $OK<br />" : " $FAIL!<br />");
455 456

  
456
if(version_compare(WB_REVISION, REVISION, '<='))
457
if(version_compare(WB_REVISION, REVISION, '<'))
457 458
{
458 459
	echo '<h3>Step '.(++$stepID).': Updating core tables</h3>';
459 460

  

Also available in: Unified diff