Revision 2091
Added by darkviper almost 11 years ago
branches/2.8.x/CHANGELOG | ||
---|---|---|
11 | 11 |
! = Update/Change |
12 | 12 |
=============================================================================== |
13 | 13 |
|
14 |
20 Jan-2014 Build 2090 Manuela v.d.Decken(DarkViper) |
|
15 |
! several Files: corrected case sensitivity of ::getInstance() |
|
14 | 16 |
19 Jan-2014 Build 2089 Manuela v.d.Decken(DarkViper) |
15 | 17 |
! UpgradeHelper: added method delTree() |
16 | 18 |
- templates/argos_theme |
branches/2.8.x/wb/admin/groups/index.php | ||
---|---|---|
20 | 20 |
function admin_groups_index() |
21 | 21 |
{ |
22 | 22 |
$database = WbDatabase::getInstance(); |
23 |
$mLang = Translate::getinstance();
|
|
23 |
$mLang = Translate::getInstance();
|
|
24 | 24 |
$mLang->enableAddon('admin\groups'); |
25 | 25 |
|
26 | 26 |
$mod_path = dirname(str_replace('\\', '/', __FILE__)); |
branches/2.8.x/wb/admin/templates/details.php | ||
---|---|---|
17 | 17 |
|
18 | 18 |
// Include the config file |
19 | 19 |
require('../../config.php'); |
20 |
$mLang = Translate::getinstance();
|
|
20 |
$mLang = Translate::getInstance();
|
|
21 | 21 |
$mLang->enableAddon('admin\addons'); |
22 | 22 |
require_once(WB_PATH .'/framework/functions.php'); |
23 | 23 |
require_once(WB_PATH.'/framework/class.admin.php'); |
branches/2.8.x/wb/admin/templates/index.php | ||
---|---|---|
55 | 55 |
|
56 | 56 |
//$mLang = ModLanguage::getInstance(); |
57 | 57 |
//$mLang->setLanguage(ADMIN_PATH.'/addons/languages/', LANGUAGE, DEFAULT_LANGUAGE); |
58 |
$mLang = Translate::getinstance();
|
|
58 |
$mLang = Translate::getInstance();
|
|
59 | 59 |
$mLang->enableAddon('admin\addons'); |
60 | 60 |
|
61 | 61 |
/*-- insert all needed vars from language files ----------------------------------------*/ |
branches/2.8.x/wb/admin/pages/settings.php | ||
---|---|---|
88 | 88 |
/* -------------------------------------------------------------------------------------*/ |
89 | 89 |
// $mLang = ModLanguage::getInstance(); |
90 | 90 |
// $mLang->setLanguage(dirname(__FILE__).'/languages/', LANGUAGE, DEFAULT_LANGUAGE); |
91 |
$mLang = Translate::getinstance();
|
|
91 |
$mLang = Translate::getInstance();
|
|
92 | 92 |
$mLang->enableAddon('admin\pages'); |
93 | 93 |
$oDb = WbDatabase::getInstance(); |
94 | 94 |
$sDisabled = ' disabled="disabled"'; |
branches/2.8.x/wb/admin/pages/sections.php | ||
---|---|---|
39 | 39 |
$admin = new admin('Pages', 'pages_view', false); |
40 | 40 |
// Include the WB functions file |
41 | 41 |
if(!function_exists('directory_list')) { require(WB_PATH.'/framework/functions.php'); } |
42 |
$mLang = Translate::getinstance();
|
|
42 |
$mLang = Translate::getInstance();
|
|
43 | 43 |
$mLang->enableAddon('admin\pages'); |
44 | 44 |
$oDb = WbDatabase::getInstance(); |
45 | 45 |
$action = 'show'; |
branches/2.8.x/wb/admin/pages/add.php | ||
---|---|---|
27 | 27 |
if(!class_exists('admin', false)){ include(WB_PATH.'/framework/class.admin.php'); } |
28 | 28 |
$oReg = WbAdaptor::getInstance(); |
29 | 29 |
$oDb = WbDatabase::getInstance(); |
30 |
$mLang = Translate::getinstance();
|
|
30 |
$mLang = Translate::getInstance();
|
|
31 | 31 |
$mLang->enableAddon('admin\pages'); |
32 | 32 |
|
33 | 33 |
// suppress to print the header, so no new FTAN will be set |
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', '2089');
|
|
54 |
if(!defined('REVISION')) define('REVISION', '2090');
|
|
55 | 55 |
if(!defined('SP')) define('SP', ''); |
branches/2.8.x/wb/admin/settings/index.php | ||
---|---|---|
57 | 57 |
|
58 | 58 |
//$mLang = ModLanguage::getInstance(); |
59 | 59 |
//$mLang->setLanguage(dirname(__FILE__).'/languages/', LANGUAGE, DEFAULT_LANGUAGE); |
60 |
$mLang = Translate::getinstance();
|
|
60 |
$mLang = Translate::getInstance();
|
|
61 | 61 |
$mLang->enableAddon('admin\settings'); |
62 | 62 |
/*-- insert all needed vars from language files ----------------------------------------*/ |
63 | 63 |
$oTpl->set_var($mLang->getLangArray()); |
branches/2.8.x/wb/admin/users/index.php | ||
---|---|---|
34 | 34 |
function admin_users_index($aActionRequest) |
35 | 35 |
{ |
36 | 36 |
$database = WbDatabase::getInstance(); |
37 |
$mLang = Translate::getinstance();
|
|
37 |
$mLang = Translate::getInstance();
|
|
38 | 38 |
$mLang->enableAddon('admin\users'); |
39 | 39 |
|
40 | 40 |
$sAdminPath = dirname(str_replace('\\', '/', __FILE__)); |
branches/2.8.x/wb/admin/preferences/index.php | ||
---|---|---|
23 | 23 |
function build_page( &$admin, &$database ) |
24 | 24 |
{ |
25 | 25 |
// global $HEADING, $TEXT; |
26 |
$mLang = Translate::getinstance();
|
|
26 |
$mLang = Translate::getInstance();
|
|
27 | 27 |
$oReg = WbAdaptor::getInstance(); |
28 | 28 |
include_once(WB_PATH.'/framework/functions-utf8.php'); |
29 | 29 |
// Setup template object, parse vars to it, then parse it |
... | ... | |
32 | 32 |
$template = new Template(dirname($admin->correct_theme_source('preferences.htt'))); |
33 | 33 |
$template->set_file( 'page', 'preferences.htt' ); |
34 | 34 |
$template->set_block( 'page', 'main_block', 'main' ); |
35 |
$mLang = Translate::getinstance();
|
|
35 |
$mLang = Translate::getInstance();
|
|
36 | 36 |
// $mLang->enableAddon('admin\preferences'); |
37 | 37 |
$template->set_var($mLang->getLangArray()); |
38 | 38 |
|
branches/2.8.x/wb/admin/languages/details.php | ||
---|---|---|
20 | 20 |
function getInfoFromLanguageFile($sFile) |
21 | 21 |
{ |
22 | 22 |
$mRetval = array(); |
23 |
$mLang = Translate::getinstance();
|
|
23 |
$mLang = Translate::getInstance();
|
|
24 | 24 |
$oReg = WbAdaptor::getInstance(); |
25 | 25 |
// check for valid language code |
26 | 26 |
if(preg_match('/^([A-Z]{2}.php)/', $sFile)) { |
... | ... | |
47 | 47 |
// Include the config code |
48 | 48 |
require('../../config.php'); |
49 | 49 |
// Print admin header |
50 |
$mLang = Translate::getinstance();
|
|
50 |
$mLang = Translate::getInstance();
|
|
51 | 51 |
$mLang->enableAddon('admin\addons'); |
52 | 52 |
require_once(WB_PATH.'/framework/class.admin.php'); |
53 | 53 |
$admin = new admin('Addons', 'languages_view', false); |
branches/2.8.x/wb/admin/languages/index.php | ||
---|---|---|
52 | 52 |
|
53 | 53 |
//$mLang = ModLanguage::getInstance(); |
54 | 54 |
//$mLang->setLanguage(ADMIN_PATH.'/addons/languages/', LANGUAGE, DEFAULT_LANGUAGE); |
55 |
$mLang = Translate::getinstance();
|
|
55 |
$mLang = Translate::getInstance();
|
|
56 | 56 |
$mLang->enableAddon('admin\addons'); |
57 | 57 |
|
58 | 58 |
/*-- insert all needed vars from language files ----------------------------------------*/ |
branches/2.8.x/wb/admin/modules/details.php | ||
---|---|---|
17 | 17 |
|
18 | 18 |
// Include the config file |
19 | 19 |
require('../../config.php'); |
20 |
$mLang = Translate::getinstance();
|
|
20 |
$mLang = Translate::getInstance();
|
|
21 | 21 |
$mLang->enableAddon('admin\addons'); |
22 | 22 |
require_once(WB_PATH .'/framework/functions.php'); |
23 | 23 |
require_once(WB_PATH.'/framework/class.admin.php'); |
branches/2.8.x/wb/admin/modules/index.php | ||
---|---|---|
27 | 27 |
// Make news post access files dir |
28 | 28 |
if(!function_exists('get_variable_content')) {require($oReg->AppPath.'framework/functions.php');} |
29 | 29 |
$oReg->getWbConstants(); |
30 |
$mLang = Translate::getinstance();
|
|
30 |
$mLang = Translate::getInstance();
|
|
31 | 31 |
$mLang->enableAddon('admin\addons'); |
32 | 32 |
|
33 | 33 |
// Setup template object, parse vars to it, then parse it |
branches/2.8.x/wb/account/confirm.php | ||
---|---|---|
30 | 30 |
|
31 | 31 |
require_once($config_file); |
32 | 32 |
} |
33 |
$mLang = Translate::getinstance();
|
|
33 |
$mLang = Translate::getInstance();
|
|
34 | 34 |
$mLang->enableAddon('account'); |
35 | 35 |
|
36 | 36 |
if(!class_exists('frontend', false)){ include(WB_PATH.'/framework/class.frontend.php'); } |
branches/2.8.x/wb/account/preferences_form.php | ||
---|---|---|
24 | 24 |
/* -------------------------------------------------------- */ |
25 | 25 |
|
26 | 26 |
$oReg = WbAdaptor::getInstance(); |
27 |
$mLang = Translate::getinstance();
|
|
27 |
$mLang = Translate::getInstance();
|
|
28 | 28 |
|
29 | 29 |
if($wb->is_authenticated() === false) { |
30 | 30 |
// User needs to login first |
branches/2.8.x/wb/account/signup_form.php | ||
---|---|---|
30 | 30 |
require_once(WB_PATH.'/include/captcha/captcha.php'); |
31 | 31 |
include_once (WB_PATH.'/framework/functions.php'); |
32 | 32 |
|
33 |
$mLang = Translate::getinstance();
|
|
33 |
$mLang = Translate::getInstance();
|
|
34 | 34 |
$mLang->enableAddon('account'); |
35 | 35 |
$oDb = WbDatabase::getInstance(); |
36 | 36 |
$oReg = WbAdaptor::getInstance(); |
branches/2.8.x/wb/modules/news/upgrade.php | ||
---|---|---|
53 | 53 |
global $OK ,$FAIL; |
54 | 54 |
$aMandatoryTables = array('mod_news_posts','mod_news_groups','mod_news_comments','mod_news_settings'); |
55 | 55 |
$oDb = WbDatabase::getInstance(); |
56 |
$oLang = Translate::getinstance();
|
|
56 |
$oLang = Translate::getInstance();
|
|
57 | 57 |
$oReg = WbAdaptor::getInstance(); |
58 | 58 |
$msg = array(); |
59 | 59 |
$sCallingScript = $_SERVER['SCRIPT_NAME']; |
Also available in: Unified diff
! several Files: corrected case sensitivity of ::getInstance()