Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

ForumNG: Make portfolio export work correctly in [2.4] #5882

  • Loading branch information...
commit 953ae1fa267634bf28ca1d4e2e08465372819e9b 1 parent feda242
Jason Platts jason-platts authored sammarshallou committed
2  feature/export/export.php
@@ -72,7 +72,7 @@ public function apply($discussion, $all, $selected, $formdata) {
72 72 'cloneid' => $cloneid,
73 73 'posts' => $posts,
74 74 'discussionid' => $discussion->get_id()),
75   - '/mod/forumng/feature/export/portfoliolib.php');
  75 + 'mod_forumng');
76 76 $button->set_formats(PORTFOLIO_FORMAT_PLAINHTML);
77 77
78 78 // redirect to the export page
2  feature/export/exportall.php
@@ -70,7 +70,7 @@ public function apply($discussion, $all, $selected, $formdata) {
70 70 array('forumngid' => $forumngid,
71 71 'cloneid' => $cloneid,
72 72 'discussionids' => $posts),
73   - '/mod/forumng/feature/export/portfoliolib.php');
  73 + 'mod_forumng');
74 74 $button->set_formats(PORTFOLIO_FORMAT_PLAINHTML);
75 75
76 76 // Redirect to the export page.
28 locallib.php
... ... @@ -0,0 +1,28 @@
  1 +<?php
  2 +// This file is part of Moodle - http://moodle.org/
  3 +//
  4 +// Moodle is free software: you can redistribute it and/or modify
  5 +// it under the terms of the GNU General Public License as published by
  6 +// the Free Software Foundation, either version 3 of the License, or
  7 +// (at your option) any later version.
  8 +//
  9 +// Moodle is distributed in the hope that it will be useful,
  10 +// but WITHOUT ANY WARRANTY; without even the implied warranty of
  11 +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12 +// GNU General Public License for more details.
  13 +//
  14 +// You should have received a copy of the GNU General Public License
  15 +// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
  16 +
  17 +
  18 +/**
  19 + * Local lib for ForumNG
  20 + * @package mod
  21 + * @subpackage forumng
  22 + * @copyright 2013 The Open University
  23 + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  24 + */
  25 +
  26 +defined('MOODLE_INTERNAL') || die();
  27 +
  28 +@include_once($CFG->dirroot . '/mod/forumng/feature/export/portfoliolib.php');

0 comments on commit 953ae1f

Please sign in to comment.
Something went wrong with that request. Please try again.