moved the variable declaration from the class to the places where it's used;
this was breaking now that we autoload instead of explicitly including things;
Resolves: http://support.web2project.net/forums/225852-i-need-help-with-/suggestions/5069268-calendar-error