mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Only call LeftAndMain::require_javascript() if that method exists - allows blog module compatibility with 2.2.2
This commit is contained in:
parent
d66b6e3dc0
commit
9c004b468c
@ -8,5 +8,7 @@ Director::addRules(50, array(
|
||||
'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');
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user