mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-16423 - fixing regression i introduced in refactor with missing global
This commit is contained in:
parent
054dd03b80
commit
11ae365cf2
@ -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';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user