MDL-15860 - add global portfolio enabled switch

This commit is contained in:
mjollnir_
2008-07-29 11:27:16 +00:00
parent a5a63515e3
commit a239f01e57
5 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -239,7 +239,7 @@
}
}
if (empty($userindexpage) && $user->id == $USER->id) {
if (empty($userindexpage) && $user->id == $USER->id && !empty($CFG->portfolioenabled)) {
/// Portfolio tab
require_once($CFG->libdir . '/portfoliolib.php');