Skip to content

Commit

Permalink
Zugriff auf $GLOBALS['TL_LANGUAGE']
Browse files Browse the repository at this point in the history
  • Loading branch information
math authored and math committed Aug 16, 2014
1 parent fa052fe commit a83c036
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions languages/de/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@
* Load on be_welcome
*/
if (TL_MODE == 'BE') {
$objUser = BackendUser::getInstance();
if (!strlen($_GET['do']) && ($objUser->language == "de") ) {
if (!strlen($_GET['do']) && ($GLOBALS['TL_LANGUAGE'] == "de") ) {
$bepiwikcharts = new bepiwikcharts();
$GLOBALS['TL_LANG']['MSC']['welcomeTo'] .= '</h1>' . $bepiwikcharts->dashboardWelcomePage() . '<h1 style="display:none">&nbsp;';
}
Expand Down
3 changes: 1 addition & 2 deletions languages/en/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@
* Load on be_welcome
*/
if (TL_MODE == 'BE') {
$objUser = BackendUser::getInstance();
if (!strlen($_GET['do']) && ($objUser->language != "de") ) {
if (!strlen($_GET['do']) && ($GLOBALS['TL_LANGUAGE'] != "de") ) {
$bepiwikcharts = new bepiwikcharts();
$GLOBALS['TL_LANG']['MSC']['welcomeTo'] .= '</h1>' . $bepiwikcharts->dashboardWelcomePage() . '<h1 style="display:none">&nbsp;';
}
Expand Down

0 comments on commit a83c036

Please sign in to comment.