MOre changes to use filelib.php
authormoodler <moodler>
Mon, 7 Mar 2005 12:10:22 +0000 (12:10 +0000)
committermoodler <moodler>
Mon, 7 Mar 2005 12:10:22 +0000 (12:10 +0000)
rss/file.php
user/pix.php
user/pixgroup.php

index 1574d2b..17ee76b 100644 (file)
@@ -16,7 +16,7 @@
     $nomoodlecookie = true;     // Because it interferes with caching
  
     require_once('../config.php');
-    require_once($CFG->dirroot.'/files/mimetypes.php');
+    require_once($CFG->libdir.'/filelib.php');
     require_once($CFG->libdir.'/rsslib.php');
 
 
index bc3ab4c..838ff8b 100644 (file)
@@ -6,7 +6,7 @@
     $nomoodlecookie = true;     // Because it interferes with caching
 
     require_once('../config.php');
-    require_once('../files/mimetypes.php');
+    require_once($CFG->libdir.'/filelib.php');
 
     $relativepath = get_file_argument('pix.php');
 
index 231b521..3e793ef 100644 (file)
@@ -6,7 +6,7 @@
     $nomoodlecookie = true;     // Because it interferes with caching
 
     require_once('../config.php');
-    require_once('../files/mimetypes.php');
+    require_once($CFG->libdir.'/filelib.php');
 
     $relativepath = get_file_argument('pixgroup.php');