From 3460e400a00bb955d69a5f8aaf69628f2d392f11 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Fri, 22 May 2015 15:50:00 +0200 Subject: [PATCH] Fixed special case for export/download. --- h5p.classes.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/h5p.classes.php b/h5p.classes.php index 4c34549..c247a71 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -2356,10 +2356,7 @@ class H5PCore { */ public function getDisable(&$sources, $current) { foreach (H5PCore::$disable as $bit => $option) { - if ($option === 'download') { - $option = 'export'; - } - if ($this->h5pF->getOption($option, TRUE) ) { + if ($this->h5pF->getOption(($bit & H5PCore::DISABLE_DOWNLOAD ? 'export' : $option), TRUE)) { if (!isset($sources[$option]) || !$sources[$option]) { $current |= $bit; // Disable }