Project

General

Profile

« Previous | Next » 

Revision 2098

Added by darkviper almost 11 years ago

! activate class Translate for all addons in admin/ (except pages/)
! class.admin >> add translation of the current theme to Translate

View differences:

save.inc.php
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
		$oLang = Translate::getInstance();
41
		$oLang->enableAddon('admin\groups');
41 42
	// check for valid group_id
42 43
		$sql = '';
43 44

  
......
77 78

  
78 79
			if($group_name == '')
79 80
			{
80
				msgQueue::add($mLang->MESSAGE_GROUPS_GROUP_NAME_BLANK );
81
				msgQueue::add($oLang->MESSAGE_GROUPS_GROUP_NAME_BLANK );
81 82
			} elseif($group_name != '') {
82 83
		// check request vars and assign values to record
83 84
				if( $database->get_one($sql) != false )
84 85
				{
85
					msgQueue::add($mLang->MESSAGE_GROUPS_GROUP_NAME_EXISTS );
86
					msgQueue::add($oLang->MESSAGE_GROUPS_GROUP_NAME_EXISTS );
86 87
				} else {
87 88
					if( $group_id == 0 )
88 89
					{
......
105 106
				$sql .= $where;
106 107
				if( $database->query($sql) )
107 108
				{
108
	                msgQueue::add($mLang->MESSAGE_GROUPS_SAVED ,true);
109
	                msgQueue::add($oLang->MESSAGE_GROUPS_SAVED ,true);
109 110
				} else {
110
					msgQueue::add($mLang->MESSAGE_RECORD_MODIFIED_FAILED );
111
					msgQueue::add($oLang->MESSAGE_RECORD_MODIFIED_FAILED );
111 112
				}
112 113
			}
113 114
		} else {

Also available in: Unified diff