Skip to content

Commit

Permalink
Fix code checker
Browse files Browse the repository at this point in the history
Update theme version
  • Loading branch information
thang-new committed Oct 15, 2024
1 parent 0946ad0 commit c62a508
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
22 changes: 13 additions & 9 deletions classes/output/format_topics_renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,23 @@

namespace theme_serlo\output;

defined('MOODLE_INTERNAL') || die();

use \format_topics\output\renderer;
use \moodle_url;
use format_topics\output\renderer;
use moodle_url;
use context_course;

/**
* Renderers format topics
*/
class format_topics_renderer extends renderer
{
function course_section_add_cm_control($course, $section, $sectionreturn = null, $displayoptions = array())
{
class format_topics_renderer extends renderer {
/**
* Summary of course_section_add_cm_control
* @param mixed $course
* @param mixed $section
* @param mixed $sectionreturn
* @param mixed $displayoptions
* @return bool|string
*/
public function course_section_add_cm_control($course, $section, $sectionreturn = null, $displayoptions = []) {
// Check to see if user can add menus.
if (
!has_capability('moodle/course:manageactivities', context_course::instance($course->id))
Expand All @@ -55,7 +59,7 @@ function course_section_add_cm_control($course, $section, $sectionreturn = null,
"return" => 0,
"type" => "empty",
"section" => $section,
])
]),
];
$ajaxcontrol = $this->render_from_template('core_course/activitychooserbutton', $data);

Expand Down
2 changes: 1 addition & 1 deletion lang/de/theme_serlo.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@
$string['secondbutton'] = 'Second Button';
$string['secondbutton_desc'] = 'This is a description for the second button.';
$string['serlo'] = 'Serlo';
$string['serlo_empty_editor'] = 'Serlo Editor';
$string['serlo_empty_editor'] = 'Serlo Editor';
5 changes: 4 additions & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2024061200; // YYYYMMDDHH (Year, Month, Day, 24-hr time)!
$plugin->requires = 2023100400;
$plugin->requires = 2022041900;
$plugin->component = 'theme_serlo';
$plugin->release = '1.0.0';
$plugin->maturity = MATURITY_STABLE;

$plugin->dependencies = [
'theme_boost' => 2023100900,
];

0 comments on commit c62a508

Please sign in to comment.