Re: [habari-users] Using Theme functions in a plugin

2010-01-03 Thread Colin
Hi Haijak I hope I'm not too late in replying. Unfortunately, your code doesn't have any surrounding context nor is it in the plugin itself, so I can't see what you are doing or trying to achieve, but the error you are seeing is technically correct. The __get() function in theme.php is not a sta

[habari-users] Using Theme functions in a plugin

2009-12-24 Thread haijak
I'm trying to hack the "RN Monthly Archives" plugin to add a small function for the theme I'm building. This line: if($yr_mth->year == Theme::__get('year') and $yr_mth->month == Theme::__get('month')): $crnt = ' class="current"'; Gives this result: Fatal error: Non-static method Theme::__get() ca