mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Added base javascript requirements to SiteTree->getCMSFields() to avoid it failing when used outside of CMS context (e.g. in our frameworktest project)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@77093 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
619c570801
commit
2dd58c8a66
@ -1118,6 +1118,9 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
*/
|
*/
|
||||||
function getCMSFields() {
|
function getCMSFields() {
|
||||||
require_once("forms/Form.php");
|
require_once("forms/Form.php");
|
||||||
|
Requirements::javascript(THIRDPARTY_DIR . "/prototype.js");
|
||||||
|
Requirements::javascript(THIRDPARTY_DIR . "/behaviour.js");
|
||||||
|
Requirements::javascript(THIRDPARTY_DIR . "/behaviour_improvements.js");
|
||||||
Requirements::javascript(CMS_DIR . "/javascript/SitetreeAccess.js");
|
Requirements::javascript(CMS_DIR . "/javascript/SitetreeAccess.js");
|
||||||
Requirements::add_i18n_javascript(SAPPHIRE_DIR . '/javascript/lang');
|
Requirements::add_i18n_javascript(SAPPHIRE_DIR . '/javascript/lang');
|
||||||
Requirements::javascript(SAPPHIRE_DIR . '/javascript/UpdateURL.js');
|
Requirements::javascript(SAPPHIRE_DIR . '/javascript/UpdateURL.js');
|
||||||
|
Loading…
Reference in New Issue
Block a user