Project

General

Profile

« Previous | Next » 

Revision 1806

Added by Dietmar about 12 years ago

  1. Bugfix double header in admintools

View differences:

branches/2.8.x/CHANGELOG
13 13

  
14 14

  
15 15

  
16
04 Nov-2012 Build 1806 Dietmar Woellbrink (Luisehahne)
17
# Bugfix show double header in admintools
16 18
04 Nov-2012 Build 1805 Dietmar Woellbrink (Luisehahne)
17 19
# fixed Undefined variable: nNumRows in \admin\users\index.php
18 20
# fixed Undefined variable: admin in \admin\admintools\tool.php
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.3');
54
if(!defined('REVISION')) define('REVISION', '1805');
54
if(!defined('REVISION')) define('REVISION', '1806');
55 55
if(!defined('SP')) define('SP', '');
branches/2.8.x/wb/admin/admintools/tool.php
23 23

  
24 24
if(!class_exists('admin', false)){
25 25
    include(WB_PATH.'/framework/class.admin.php');
26
    $admin = new admin('Admintools','admintools');
26
    $admin = new admin('Admintools','admintools',false);
27 27
}
28 28

  
29 29
require_once(WB_PATH.'/framework/functions.php');
30 30

  
31 31
$toolDir = (isset($_GET['tool']) && (trim($_GET['tool']) != '') ? trim($_GET['tool']) : '');
32
$doSave = (isset($_POST['save_settings']) || (isset($_POST['action']) && strtolower($_POST['action']) == 'save'));
32
$doSave  = (isset($_POST['save_settings']) || (isset($_POST['action']) && strtolower($_POST['action']) == 'save'));
33 33

  
34 34
// test for valid tool name
35 35
	if(preg_match('/^[a-z][a-z_\-0-9]{2,}$/i', $toolDir)) {

Also available in: Unified diff