Only call LeftAndMain::require_javascript() if that method exists - allows blog module compatibility with 2.2.2

This commit is contained in:
Sam Minnee 2008-07-24 05:04:46 +00:00
parent d66b6e3dc0
commit 9c004b468c

View File

@ -8,5 +8,7 @@ Director::addRules(50, array(
'confirm-subscription/$Action/$ID' => 'ConfirmNewsletterSignup' 'confirm-subscription/$Action/$ID' => 'ConfirmNewsletterSignup'
)); ));
LeftAndMain::require_javascript('blog/javascript/bbcodehelp.js'); if(method_exists('LeftAndMain', 'require_javascript')) {
LeftAndMain::require_javascript('blog/javascript/bbcodehelp.js');
}
?> ?>