Project

General

Profile

« Previous | Next » 

Revision 1883

Added by Dietmar over 11 years ago

! groups change languages class to translate class
! prepare upgrade-script for WB Version 2.8.4 (versioncompare)
! update Form modul to version 2.9.1

View differences:

save.inc.php
33 33
 */
34 34
	function save_group($admin, $group_id = 0)
35 35
	{
36
		global $TEXT, $MESSAGE, $HEADING, $MENU;
36
//		global $TEXT, $MESSAGE, $HEADING, $MENU;
37 37
		include_once('upgradePermissions.php');
38 38
		include_once(WB_PATH.'/framework/functions.php');
39 39
		$database = WbDatabase::getInstance();
40
		$mLang = Translate::getInstance();
40 41
	// check for valid group_id
41 42
		$sql = '';
42 43

  
......
65 66

  
66 67
			if($group_name == '')
67 68
			{
68
				msgQueue::add($MESSAGE['GROUPS_GROUP_NAME_BLANK']);
69
				msgQueue::add($mLang->MESSAGE_GROUPS_GROUP_NAME_BLANK );
69 70
			} elseif($group_name != '') {
70 71
		// check request vars and assign values to record
71 72
				if( $database->get_one($sql) != false )
72 73
				{
73
					msgQueue::add($MESSAGE['GROUPS_GROUP_NAME_EXISTS']);
74
					msgQueue::add($mLang->MESSAGE_GROUPS_GROUP_NAME_EXISTS );
74 75
				} else {
75 76
					if( $group_id == 0 )
76 77
					{
......
93 94
				$sql .= $where;
94 95
				if( $database->query($sql) )
95 96
				{
96
	                msgQueue::add($MESSAGE['GROUPS_SAVED'],true);
97
	                msgQueue::add($mLang->MESSAGE_GROUPS_SAVED ,true);
97 98
				} else {
98
					msgQueue::add($MESSAGE['RECORD_MODIFIED_FAILED']);
99
					msgQueue::add($mLang->MESSAGE_RECORD_MODIFIED_FAILED );
99 100
				}
100 101
			}
101 102
		} else {

Also available in: Unified diff