Skip to content
Browse files

files MDL-24841 Changed require to require_once in files/index.php so…

… it doesn't break if libraries are required elsewhere
  • Loading branch information...
1 parent a83fefb commit b085489d88c5f38ba42079547c5dffa643f63fad @sammarshallou sammarshallou committed Oct 25, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 files/index.php
View
4 files/index.php
@@ -8,8 +8,8 @@
// USER is a persistent variable using sessions
require('../config.php');
- require($CFG->libdir.'/filelib.php');
- require($CFG->libdir.'/adminlib.php');
+ require_once($CFG->libdir . '/filelib.php');
+ require_once($CFG->libdir . '/adminlib.php');
$id = required_param('id', PARAM_INT);
$file = optional_param('file', '', PARAM_PATH);

0 comments on commit b085489

Please sign in to comment.
Something went wrong with that request. Please try again.