I'm not sure if this should be in this forum or the widget forum but here goes.
I wondered if anyone else had the same problem and found a a solution.
When I press on the "Previous" or "next" to change the month of the diary widget I get an error:
[Notice] Use of undefined constant month - assumed 'month'
GET /silverstripe/my-diary/setMonth/?month=1235862000&back=my-diary
Line 320 in C:\wamp\www\silverstripe\diary\code\DiaryHolder.php
Source
311 Session::set("EventType",$_GET['name']);
312 $cal = DataObject::get_one('DiaryHolder');
313 Director::redirect($cal->URLSegment . "/");
314 }
315
316 /*
317 * Set the month for the calendar widget
318 */
319 function setMonth(){
320 Session::set("CalMonth",(int)$_GET[month]);
321 Director::redirect($_GET['back']."/");
322 }
323
324 /*
325 * Events RSS Feed Link
326 */
Trace
* DiaryHolder_Controller->setMonth(HTTPRequest)
Line 162 of Controller.php
* Controller->handleAction(HTTPRequest)
Line 107 of RequestHandler.php
* RequestHandler->handleRequest(HTTPRequest)
Line 122 of Controller.php
* Controller->handleRequest(HTTPRequest)
Line 19 of ModelAsController.php
* ModelAsController->handleRequest(HTTPRequest)
Line 262 of Director.php
* Director::handleRequest(HTTPRequest,Session)
Line 106 of Director.php
* Director::direct(/my-diary/setMonth/)
Line 115 of main.php