Skip to content

Commit

Permalink
Update plugin structure based on ponlawat-w/moodle-local_accessibilit…
Browse files Browse the repository at this point in the history
  • Loading branch information
cli-ish committed Aug 17, 2024
1 parent adba9fa commit 08c8aa2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions accessibility_fontface.php → classes/fontface.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace local_accessibility\widgets;
namespace accessibility_fontface;

use local_accessibility\widgets\widgetbase;

/**
* Font face accessibility widget definition
Expand All @@ -45,7 +47,8 @@ public function init() {

$userconfig = $this->getuserconfig();
if ($userconfig) {
$this->addbodyclass('accessibility-fontface-' . $userconfig);
$fontface = clean_param($userconfig, PARAM_ALPHANUM);
$this->addbodyclass('accessibility-fontface-' . $fontface);
}

/** @var \moodle_page $PAGE */
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@

$plugin->component = 'accessibility_fontface';
$plugin->release = '1.0.0';
$plugin->version = 2023071401;
$plugin->version = 2024051300;
$plugin->requires = 2022041900;
$plugin->maturity = MATURITY_STABLE;
$plugin->dependencies = [
'local_accessibility' => 2023071300,
'local_accessibility' => 2024050800,
];

0 comments on commit 08c8aa2

Please sign in to comment.