From 165aea0182929348363a222e085eb37340df4bd8 Mon Sep 17 00:00:00 2001 From: Thomas Marstrander Date: Tue, 8 Oct 2019 13:51:18 +0200 Subject: [PATCH] HFP-2858 Change function name to lower-case letters only --- classes/framework.php | 4 ++-- classes/view_assets.php | 14 +++++++------- embed.php | 4 ++-- grade.php | 2 +- library_list.php | 2 +- locallib.php | 10 +++++----- review.php | 2 +- upgrade_content_page.php | 2 +- 8 files changed, 20 insertions(+), 20 deletions(-) diff --git a/classes/framework.php b/classes/framework.php index a0bd35c7..fcb3b818 100644 --- a/classes/framework.php +++ b/classes/framework.php @@ -58,7 +58,7 @@ public static function instance($type = null) { $fs = new \mod_hvp\file_storage(); $context = \context_system::instance(); - $root = view_assets::getSiteRoot(); + $root = view_assets::getsiteroot(); $url = "{$root}/pluginfile.php/{$context->id}/mod_hvp"; $language = self::get_language(); @@ -504,7 +504,7 @@ public function getH5pPath() { // @codingStandardsIgnoreLine public function getLibraryFileUrl($libraryfoldername, $fileName) { $context = \context_system::instance(); - $basepath = view_assets::getSiteRoot() . '/'; + $basepath = view_assets::getsiteroot() . '/'; return "{$basepath}pluginfile.php/{$context->id}/mod_hvp/libraries/{$libraryfoldername}/{$fileName}"; } diff --git a/classes/view_assets.php b/classes/view_assets.php index e200575c..49686fa1 100644 --- a/classes/view_assets.php +++ b/classes/view_assets.php @@ -65,7 +65,7 @@ public function __construct($cm, $course, $options = []) { // Add JavaScript settings for this content. $cid = 'cid-' . $this->content['id']; - $root = self::getSiteRoot(); + $root = self::getsiteroot(); $this->settings['contents'][ $cid ] = array( 'library' => \H5PCore::libraryToString($this->content['library']), 'jsonContent' => $this->getfilteredparameters(), @@ -152,7 +152,7 @@ private function getembedcode($embedenabled) { return ''; } - $root = self::getSiteRoot(); + $root = self::getsiteroot(); $embedurl = new \moodle_url("{$root}/mod/hvp/embed.php?id={$this->cm->id}"); return "