Revision 1883
Added by Dietmar over 11 years ago
index.php | ||
---|---|---|
20 | 20 |
function admin_groups_index() |
21 | 21 |
{ |
22 | 22 |
$database = WbDatabase::getInstance(); |
23 |
$mLang = ModLanguage::getInstance(); |
|
24 |
$mLang->setLanguage(dirname(__FILE__).'/languages/', LANGUAGE, DEFAULT_LANGUAGE); |
|
23 |
// $mLang = ModLanguage::getInstance(); |
|
24 |
// $mLang->setLanguage(dirname(__FILE__).'/languages/', LANGUAGE, DEFAULT_LANGUAGE); |
|
25 |
$mLang = Translate::getinstance(); |
|
26 |
$mLang->enableAddon('admin\groups'); |
|
25 | 27 |
|
26 | 28 |
$mod_path = dirname(str_replace('\\', '/', __FILE__)); |
27 | 29 |
$mod_name = basename($mod_path); |
... | ... | |
125 | 127 |
} |
126 | 128 |
print $output; |
127 | 129 |
$admin->print_footer(); |
130 |
$mLang->disableAddon(); |
|
128 | 131 |
} |
129 | 132 |
// start dispatcher maintenance |
130 | 133 |
if(!defined('WB_PATH')) |
131 | 134 |
{ |
132 |
require('../../config.php'); |
|
133 |
require_once(WB_PATH.'/framework/class.admin.php'); |
|
135 |
$config_file = realpath('../../config.php'); |
|
136 |
if(file_exists($config_file) && !defined('WB_URL')) |
|
137 |
{ |
|
138 |
require($config_file); |
|
139 |
} |
|
134 | 140 |
} |
141 |
if(!class_exists('admin', false)){ include(WB_PATH.'/framework/class.admin.php'); } |
|
135 | 142 |
admin_groups_index(); |
136 | 143 |
exit; |
137 | 144 |
// end of file |
Also available in: Unified diff
! 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