Project

General

Profile

« Previous | Next » 

Revision 1924

Added by darkviper over 11 years ago

syncronize project and some small typo corrections in /account/

View differences:

confirm.php
16 16
 */
17 17

  
18 18
require_once('../config.php');
19
$mLang = Translate::getinstance();
20
$mLang->enableAddon('account');
19 21

  
20 22
if(!class_exists('frontend', false)){ include(WB_PATH.'/framework/class.frontend.php'); }
21 23

  
......
27 29
// load module language file
28 30
//$sAutoLanguage = isset($_SESSION['LANGUAGE']) ? $_SESSION['LANGUAGE'] : AccountSignup::GetBowserLanguage(DEFAULT_LANGUAGE);
29 31

  
30
$mLang = ModLanguage::getInstance();
31
$mLang->setLanguage(dirname(__FILE__).'/languages/', LANGUAGE, DEFAULT_LANGUAGE);
32

  
33 32
//$langDir = WB_PATH . '/languages/' . LANGUAGE . '.php';
34 33
//require_once(!file_exists($langDir) ? WB_PATH . '/languages/EN.php' : $langDir );
35 34

  
......
63 62
define('ROOT_PARENT', $root_parent);
64 63
define('PARENT', 0);
65 64
define('LEVEL', $level);
66
define('PAGE_TITLE', $TEXT['SIGNUP']);
67
define('MENU_TITLE', $TEXT['SIGNUP']);
65
define('PAGE_TITLE', $mLang->TEXT_SIGNUP);
66
define('MENU_TITLE', $mLang->TEXT_SIGNUP);
68 67
define('MODULE', '');
69 68
define('VISIBILITY', 'public');
70 69

  
71 70
define('PAGE_CONTENT', WB_PATH.'/account/confirm_form.php');
72 71

  
73

  
72
$mLang->disableAddon();
74 73
// Include the index (wrapper) file
75 74
require(WB_PATH.'/index.php');
76 75

  

Also available in: Unified diff