Skip to content

Commit

Permalink
Fixed: Too few arguments to function WP_Widget::__construct()
Browse files Browse the repository at this point in the history
  • Loading branch information
DasLampe committed Jan 7, 2023
1 parent dbb435b commit 9301275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scoutnet_kalender.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
License: GPLv2
*/

class ScoutnetKalender {
class ScoutnetKalender extends \WP_Widget {

public static $VERSION = '0.2.0';
public static $SNK_DIR;
Expand All @@ -30,7 +30,7 @@ public function __construct() {
add_shortcode('snk', array(&$this, 'inline_kalender'));

// widget
add_action('widgets_init', function() { return register_widget("ScoutnetKalenderWidget"); });
parent::__construct("ScoutnetKalenderWidget", "Scoutnet Kalender widget");
}

public function init() {
Expand Down

0 comments on commit 9301275

Please sign in to comment.