Bug #597
$yearsel not defined
| Status: | Closed | Start date: | 12/18/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | Ryan Gordon | % Done: | 100% |
|
| Category: | Calendar | |||
| Target version: | 1.4.12 | |||
| Reproducibility: | Always | Database Type: | ||
| Reported In MyBB Version: | 1.4.10 | Database Version: | ||
| PHP Version: | SQA assignments: | |||
| Browser: |
Description
In the template calendar_weekview you can find the variable $yearsel which is empty.
Possible fix:
Open the file calendar.php and find line 1783:
$weekdays = fetch_weekday_structure($calendar['startofweek']);
Below add:
$yearsel = '';
for($i = my_date("Y"); $i < (my_date("Y") + 5); ++$i)
{
$yearsel .= "<option value=\"$i\">$i</option>\n";
}
Associated revisions
Fixes $yearsel not defined (fixes:597)
History
Updated by Ryan Gordon about 2 years ago
- Status changed from New to Assigned
- Assignee set to Ryan Gordon
- Target version set to 1.4.12
Updated by Ryan Gordon about 2 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
Applied in changeset r4624.
Updated by Michael Schlechtinger about 2 years ago
- Status changed from Resolved to Closed