we usually use include instead of require for plugin files
authorPetr Skoda <skodak@moodle.org>
Sun, 4 Jul 2010 09:52:21 +0000 (09:52 +0000)
committerPetr Skoda <skodak@moodle.org>
Sun, 4 Jul 2010 09:52:21 +0000 (09:52 +0000)
pluginfile.php

index 24e638d..ba34c8c 100644 (file)
@@ -681,7 +681,7 @@ if ($component === 'blog') {
     if (!file_exists("$dir/lib.php")) {
         send_file_not_found();
     }
-    require_once("$dir/lib.php");
+    include_once("$dir/lib.php");
 
     $filefunction = $component.'_pluginfile';
     if (function_exists($filefunction)) {