Skip to content
Browse files

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

  • Loading branch information...
1 parent feda242 commit 953ae1fa267634bf28ca1d4e2e08465372819e9b @jason-platts jason-platts committed with sammarshallou Feb 7, 2013
Showing with 30 additions and 2 deletions.
  1. +1 −1 feature/export/export.php
  2. +1 −1 feature/export/exportall.php
  3. +28 −0 locallib.php
View
2 feature/export/export.php
@@ -72,7 +72,7 @@ public function apply($discussion, $all, $selected, $formdata) {
'cloneid' => $cloneid,
'posts' => $posts,
'discussionid' => $discussion->get_id()),
- '/mod/forumng/feature/export/portfoliolib.php');
+ 'mod_forumng');
$button->set_formats(PORTFOLIO_FORMAT_PLAINHTML);
// redirect to the export page
View
2 feature/export/exportall.php
@@ -70,7 +70,7 @@ public function apply($discussion, $all, $selected, $formdata) {
array('forumngid' => $forumngid,
'cloneid' => $cloneid,
'discussionids' => $posts),
- '/mod/forumng/feature/export/portfoliolib.php');
+ 'mod_forumng');
$button->set_formats(PORTFOLIO_FORMAT_PLAINHTML);
// Redirect to the export page.
View
28 locallib.php
@@ -0,0 +1,28 @@
+<?php
+// This file is part of Moodle - http://moodle.org/
+//
+// Moodle is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Moodle is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
+
+
+/**
+ * Local lib for ForumNG
+ * @package mod
+ * @subpackage forumng
+ * @copyright 2013 The Open University
+ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
+
+@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.