SiteTree->CMSEditLink()

Mainly to make it compatible with the Translatable
extension linking to existing translations of it,
but also to make it work similarly to the SiteTree logic elsewhere.
This commit is contained in:
Ingo Schommer 2012-08-05 20:52:22 +02:00
parent 5938ab06ba
commit 9076286162

View File

@ -148,6 +148,13 @@ class SiteConfig extends DataObject implements PermissionProvider {
return $actions;
}
/**
* @return String
*/
function CMSEditLink() {
return singleton('CMSSettingsController')->Link();
}
/**
* Get the current sites SiteConfig, and creates a new one