MDL-16423 - fixing regression i introduced in refactor with missing global

This commit is contained in:
mjollnir_ 2008-09-11 14:12:07 +00:00
parent 054dd03b80
commit 11ae365cf2

View File

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