cyclopes
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: LeagueManager] Widget ProblemsQuick fix:
in lib/ajax.php
line 38:
addrequire_once(‘widget.php’);
if (!isset($lmWidget))
$lmWidget = new LeagueManagerWidget();line 44-50:
modify$current = $_POST[‘current’];
$element = $_POST[‘element’];
$operation = $_POST[‘operation’];
$league_id = $_POST[‘league_id’];
$match_limit = ( $_POST[‘match_limit’] == ‘false’ ) ? false : $_POST[‘match_limit’];
$widget_number = $_POST[‘widget_number’];
$season = $_POST[‘season’];to
$current = $_POST[‘current’];
$element = $_POST[‘element’];
$operation = $_POST[‘operation’];
$instance[‘league’] = $_POST[‘league_id’];
$instance[‘match_limit’] = ( $_POST[‘match_limit’] == ‘false’ ) ? false : $_POST[‘match_limit’];
$widget_number = $_POST[‘widget_number’];
$instance[‘season’] = $_POST[‘season’];line 62:
modify$match_box = $lmWidget->showNextMatchBox($widget_number, $league_id, $season, $match_limit, false);
to
$match_box = $lmWidget->showNextMatchBox($widget_number, $instance, false);
line 66
modify:$match_box = $lmWidget->showPrevMatchBox($widget_number, $league_id, $season, $match_limit, false);
to
$match_box = $lmWidget->showPrevMatchBox($widget_number, $instance, false);
in lib/widget.php
line 141:
addif (!isset($instance[‘date_format’]) || empty($instance[‘date_format’]))
$instance[‘date_format’] = ‘l jS F’;(update the date_format string with that of your choice).
Should get it working until we get a fix.