Permalink
Browse files

Now I use $CFG->libdir in Moodle integration code, as suggested by Ma…

…rtin

Langhoff. Thanks!

--HG--
extra : convert_revision : svn%3Afc1ba2b4-ac28-11dd-a772-7fcde58d38e6/trunk%40136
  • Loading branch information...
1 parent acf7450 commit f58becad4c9501e96328f8c602faa4514e8d3907 mihai.sucan committed Oct 7, 2009
Showing with 11 additions and 5 deletions.
  1. +6 −0 CHANGES
  2. +3 −3 ext/moodle/imagesave20.php
  3. +2 −2 ext/moodle/imageview19.php
View
@@ -1,3 +1,9 @@
+2009-10-07:
+===========
+
+- Using $CFG->libdir in Moodle integration code, as suggested by Martin
+Langhoff. Thanks!
+
2009-09-11:
===========
@@ -18,7 +18,7 @@
* along with PaintWeb. If not, see <http://www.gnu.org/licenses/>.
*
* $URL: http://code.google.com/p/paintweb $
- * $Date: 2009-08-19 19:06:45 +0300 $
+ * $Date: 2009-10-07 15:54:52 +0300 $
*/
// This script performs asynchronous image save in PaintWeb. This is used by the
@@ -41,8 +41,8 @@
// values are missing, then new values will be determined.
require_once('../../../../config.php');
-require_once('../../../../lib/filelib.php');
-require_once('../../../../repository/lib.php');
+require_once($CFG->libdir . '/filelib.php');
+require_once($CFG->dirroot . '/repository/lib.php');
/**
* Send the JSON object result to PaintWeb.
@@ -18,15 +18,15 @@
* along with PaintWeb. If not, see <http://www.gnu.org/licenses/>.
*
* $URL: http://code.google.com/p/paintweb $
- * $Date: 2009-08-11 14:29:31 +0300 $
+ * $Date: 2009-10-07 15:16:47 +0300 $
*/
// This script serves images saved by PaintWeb to the browser.
// This script only works with Moodle 1.9.
require_once('../../../../config.php');
-require_once('../../../../lib/filelib.php');
+require_once($CFG->libdir . '/filelib.php');
// disable moodle specific debug messages
disable_debugging();

0 comments on commit f58beca

Please sign in to comment.