Project

General

Profile

« Previous | Next » 

Revision 2109

Added by darkviper almost 10 years ago

  1. admin/settings/ little typofix, save settings now use official method

View differences:

branches/2.8.x/CHANGELOG
11 11
! = Update/Change
12 12
===============================================================================
13 13

  
14
25 Nov-2014 Build 2109 Manuela v.d.Decken(DarkViper)
15
# admin/settings/ little typofix, save settings now use official method
14 16
25 Nov-2014 Build 2108 Manuela v.d.Decken(DarkViper)
15 17
# an additional fix in install/save.php
16 18
25 Nov-2014 Build 2107 Manuela v.d.Decken(DarkViper)
branches/2.8.x/wb/admin/interface/version.php
51 51

  
52 52
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
53 53
if(!defined('VERSION')) define('VERSION', '2.8.4');
54
if(!defined('REVISION')) define('REVISION', '2108');
54
if(!defined('REVISION')) define('REVISION', '2109');
55 55
if(!defined('SP')) define('SP', '');
branches/2.8.x/wb/admin/settings/locking.php
26 26

  
27 27
if ($admin->get_user_id() == 1) {
28 28
	$val = (((int)(defined('SYSTEM_LOCKED') ? SYSTEM_LOCKED : 0)) + 1) % 2;
29
	$sql = 'SELECT COUNT(`setting_id`) FROM `'.$oDb->TablePrefix.'settings` '
30
         . 'WHERE `name` = \'system_locked\'';
31
    $bUpdate = (bool)$oDb->getOne($sql);
32
    $sql = $bUpdate ? 'UPDATE ' : 'INSERT ';
33
	$sql .= '`'.$oDb->TablePrefix.'settings` '
34
	      . 'SET `name` = \'system_locked\', '
35
	      .     '`value` = '.$val;
36
    $sql .= $bUpdate ? 'WHERE `name` = \'system_locked\'' : '';
37
	$oDb->doQuery($sql);
29
    db_update_key_value($oDb->TablePrefix.'settings', 'system_locked', $val);
38 30
}
39 31
// redirect to backend
40 32
header('Location: ' . ADMIN_URL . '/index.php');
branches/2.8.x/wb/admin/settings/index.php
915 915
	$sReadOnly = '';
916 916
	$sPagesEditType = 'text';
917 917
    $sql = 'SELECT COUNT(*) FROM `'.$oDb->TablePrefix.'pages`';
918
	if (!($bPagesCanModify = ($oDb->getOne($sql)))) {
918
	if ($oDb->getOne($sql)) {
919 919
		$sReadOnly = ' readonly="readonly"';
920 920
		$sPagesEditType = 'grey bold';
921 921
	}

Also available in: Unified diff