From 8b43f32f8c202dce8917f2ccd9f57cd94628784a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Mon, 15 Jun 2020 13:35:43 +0200 Subject: [PATCH] MDL-69060 core_contentbank: fix contenbank typos. --- admin/settings/plugins.php | 6 +++--- contentbank/classes/content.php | 4 ++-- contentbank/index.php | 2 +- contentbank/upload.php | 2 +- contentbank/view.php | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/admin/settings/plugins.php b/admin/settings/plugins.php index 4eb6ec4a7a2..1942627d5ca 100644 --- a/admin/settings/plugins.php +++ b/admin/settings/plugins.php @@ -645,14 +645,14 @@ if ($hassiteconfig) { // Content bank content types. if ($hassiteconfig) { - $ADMIN->add('modules', new admin_category('contenbanksettings', new lang_string('contentbank'))); + $ADMIN->add('modules', new admin_category('contentbanksettings', new lang_string('contentbank'))); $temp = new admin_settingpage('managecontentbanktypes', new lang_string('managecontentbanktypes')); $temp->add(new admin_setting_managecontentbankcontenttypes()); - $ADMIN->add('contenbanksettings', $temp); + $ADMIN->add('contentbanksettings', $temp); $plugins = core_plugin_manager::instance()->get_plugins_of_type('contenttype'); foreach ($plugins as $plugin) { /** @var \core\plugininfo\contentbank $plugin */ - $plugin->load_settings($ADMIN, 'contenbanksettings', $hassiteconfig); + $plugin->load_settings($ADMIN, 'contentbanksettings', $hassiteconfig); } } diff --git a/contentbank/classes/content.php b/contentbank/classes/content.php index 9765bfd123f..c9dad8859d1 100644 --- a/contentbank/classes/content.php +++ b/contentbank/classes/content.php @@ -59,7 +59,7 @@ abstract class content { if (!class_exists($typeclass)) { throw new coding_exception(get_string('contenttypenotfound', 'error', $record->contenttype)); } - // A record with the id must exist in 'contenbank_content' table. + // A record with the id must exist in 'contentbank_content' table. // To improve performance, we are only checking the id is set, but no querying the database. if (!isset($record->id)) { throw new coding_exception(get_string('invalidcontentid', 'error')); @@ -103,7 +103,7 @@ abstract class content { public function update_content(): bool { global $USER, $DB; - // A record with the id must exist in 'contenbank_content' table. + // A record with the id must exist in 'contentbank_content' table. // To improve performance, we are only checking the id is set, but no querying the database. if (!isset($this->content->id)) { throw new coding_exception(get_string('invalidcontentid', 'error')); diff --git a/contentbank/index.php b/contentbank/index.php index 5608a9a2b93..bf8de2b4675 100644 --- a/contentbank/index.php +++ b/contentbank/index.php @@ -44,7 +44,7 @@ $PAGE->set_url('/contentbank/index.php'); $PAGE->set_context($context); $PAGE->set_title($title); $PAGE->set_heading($title); -$PAGE->set_pagetype('contenbank'); +$PAGE->set_pagetype('contentbank'); // Get all contents managed by active plugins where the user has permission to render them. $cb = new \core_contentbank\contentbank(); diff --git a/contentbank/upload.php b/contentbank/upload.php index 371d27f9843..c4626f0b69d 100644 --- a/contentbank/upload.php +++ b/contentbank/upload.php @@ -44,7 +44,7 @@ $PAGE->set_context($context); $PAGE->navbar->add(get_string('upload', 'contentbank')); $PAGE->set_title($title); $PAGE->set_heading($title); -$PAGE->set_pagetype('contenbank'); +$PAGE->set_pagetype('contentbank'); $maxbytes = $CFG->userquota; $maxareabytes = $CFG->userquota; diff --git a/contentbank/view.php b/contentbank/view.php index 1cf7500dd97..9f2a8d12548 100644 --- a/contentbank/view.php +++ b/contentbank/view.php @@ -56,7 +56,7 @@ $PAGE->navbar->add($record->name); $PAGE->set_heading($record->name); $title .= ": ".$record->name; $PAGE->set_title($title); -$PAGE->set_pagetype('contenbank'); +$PAGE->set_pagetype('contentbank'); $contenttypeclass = "\\$record->contenttype\\contenttype"; $contentclass = "\\$record->contenttype\\content";