Skip to content

Commit

Permalink
[Doc Repo] Remove superfluous session checks generating PHP Notices (#…
Browse files Browse the repository at this point in the history
…3017)

The ajax script was duplicating code that was already run from AjaxHelper.php, so is removed.
  • Loading branch information
John Saigle authored and driusan committed Oct 23, 2017
1 parent 7223731 commit 36d0976
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions modules/document_repository/ajax/GetFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This ensures that the file exists and the user is logged in to
* Loris before trying to return the file to the user.
*
* PHP Version 5
* PHP Version 7
*
* @category Loris
* @package Document_Repository
Expand All @@ -28,14 +28,6 @@
__DIR__ . "/../php/libraries"
);

// Ensures the user is logged in, and parses the config file.
require_once "NDB_Client.class.inc";
$client = new NDB_Client();
$client->initialize("../project/config.xml");

// Checks that config settings are set
$config =& NDB_Config::singleton();

$file = $_GET['File'];

// Ensure file exists in the document_repository table before serving
Expand Down

0 comments on commit 36d0976

Please sign in to comment.