I'm testing the hack wit RT's populus template. It works BUT there's an error displayed at the top of the page:
Code:
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\Joomla\templates\rt_populus\rt_styleloader.php on line 11
Then if I click on forums titles or reply to a topic, another error appears:
Code:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in C:\xampp\htdocs\Joomla\templates\rt_populus\rt_styleloader.php on line 28
Btw, I've moved
$myjoomladhead at the beginning of the
headinclude template.
See attachment.
Quote:
Originally Posted by cheesegrits
One fairly important change though, for anyone even vaguely concerned about server load, you should probably wrap this around the plugin code:
PHP Code:
if (THIS_SCRIPT != 'cron') { blah blah }
Otherwise you are loading the whole of Joomla twice on every page load, and it obviously doesn't need to happen the second time, just for the cron jobs.
|
Where do I have to put that code? In xml file? And Do I have to oaste only
Code:
PHP Code:
if (THIS_SCRIPT != 'cron'){ blah blah}
?
Thanks