Skip to content

Commit

Permalink
Replaced __DIR__ by dirname(__FILE__) (as __DIR__ needs php > 5.3
Browse files Browse the repository at this point in the history
git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@455 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
torinfo committed Oct 20, 2012
1 parent 89989b4 commit d0a177c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LTI/index.php
Expand Up @@ -8,7 +8,7 @@
*/


require_once(__DIR__ . "/../config.php");
require_once(dirname(__FILE__) . "/../config.php");

_load_language_file("/index.inc");

Expand Down
4 changes: 2 additions & 2 deletions website_code/php/display_library.php
Expand Up @@ -3,8 +3,8 @@

require_once('../../../config.php');

} elseif (file_exists(__DIR__ . '/../../config.php')) {
require_once(__DIR__ . '/../../config.php');
} elseif (file_exists(dirname(__FILE__) . '/../../config.php')) {
require_once(dirname(__FILE__) . '/../../config.php');
} else {

require_once('config.php');
Expand Down
2 changes: 1 addition & 1 deletion website_code/php/login_library.php
Expand Up @@ -353,7 +353,7 @@ function login_processing2($firstname = false, $surname = false, $username = fal
$_SESSION['toolkits_surname'] = $surname == false ? $authmech->getSurname() : $surname;
$_SESSION['toolkits_logon_username'] = $username == false ? $authmech->getUsername() : $username;

require_once __DIR__ . '/user_library.php';
require_once dirname(__FILE__) . '/user_library.php';

/*
* Check to see if this is a users' first time on the site
Expand Down

0 comments on commit d0a177c

Please sign in to comment.