From 7e9d0033bfa34b211dd9613a6e100fd7b9fdf7f3 Mon Sep 17 00:00:00 2001
From: Frode Petterson <frode.andre.petterson@gmail.com>
Date: Mon, 18 Jul 2016 10:53:19 +0200
Subject: [PATCH] Corrected indentation
---
view.php | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/view.php b/view.php
index cbc9a46..ac6690e 100644
--- a/view.php
+++ b/view.php
@@ -83,14 +83,14 @@ if (!isset($CFG->mod_hvp_export) || $CFG->mod_hvp_export === true) {
// Find course context.
$context = \context_course::instance($course->id);
if (has_capability('mod/hvp:getexport', $context)) {
- $hvppath = "{$CFG->httpswwwroot}/pluginfile.php/{$context->id}/mod_hvp";
- $exportfilename = ($content['slug'] ? $content['slug'] . '-' : '') . $content['id'] . '.h5p';
- $export = "{$hvppath}/exports/{$exportfilename}";
+ $hvppath = "{$CFG->httpswwwroot}/pluginfile.php/{$context->id}/mod_hvp";
+ $exportfilename = ($content['slug'] ? $content['slug'] . '-' : '') . $content['id'] . '.h5p';
+ $export = "{$hvppath}/exports/{$exportfilename}";
}
}
if (empty($export)) {
- // Remove Download button when there's no export URL
- $content['disable'] |= \H5PCore::DISABLE_DOWNLOAD;
+ // Remove Download button when there's no export URL
+ $content['disable'] |= \H5PCore::DISABLE_DOWNLOAD;
}
// Add JavaScript settings for this content.
--
GitLab