Skip to content

Commit

Permalink
remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ruleant committed Jan 24, 2013
1 parent ef423e1 commit cb9e34d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions libraries/core.lib.php
Expand Up @@ -228,11 +228,6 @@ function __($text)
}
}

$error_header = __('Error');

$lang = $GLOBALS['available_languages'][$GLOBALS['lang']][1];
$dir = $GLOBALS['text_dir'];

// on fatal errors it cannot hurt to always delete the current session
if ($delete_session
&& isset($GLOBALS['session_name'])
Expand Down

2 comments on commit cb9e34d

@lem9
Copy link
Contributor

@lem9 lem9 commented on cb9e34d Jan 26, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dieter,
these are used by libraries/error.inc.php in case of a fatal error. Moreover, removing them generates error as can be seen with phpunit.

@ruleant
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reverted the commit in 0a3953d and added a comment in afcf4ec
Unit tests are running again now

Please sign in to comment.