Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MDL-15860 - add global portfolio enabled switch
[moodle.git]
/
portfolio
/
add.php
diff --git
a/portfolio/add.php
b/portfolio/add.php
index
0f9edae
..
ddab920
100644
(file)
--- a/
portfolio/add.php
+++ b/
portfolio/add.php
@@
-1,5
+1,10
@@
<?php
require_once(dirname(dirname(__FILE__)) . '/config.php');
+
+if (empty($CFG->portfolioenabled)) {
+ print_error('disabled', 'portfolio');
+}
+
require_once($CFG->libdir . '/portfoliolib.php');
$exporter = null;