]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16423 - fixing regression i introduced in refactor with missing global
authormjollnir_ <mjollnir_>
Thu, 11 Sep 2008 14:12:07 +0000 (14:12 +0000)
committermjollnir_ <mjollnir_>
Thu, 11 Sep 2008 14:12:07 +0000 (14:12 +0000)
lib/portfoliolib.php

index cf3e8c145914954c0b095894443baf42849cd003..aee61ec03f67ebee10e18a6c9c1f9a2e97e8ffc2 100644 (file)
@@ -75,7 +75,7 @@ class portfolio_add_button {
     *                       See set_formats for more information on this.
     */
     public function __construct($options=null) {
-        global $SESSION;
+        global $SESSION, $CFG;
         if (isset($SESSION->portfolioexport)) {
             $a = new StdClass;
             $a->cancel = $CFG->wwwroot . '/portfolio/add.php?cancel=1';