From 907628616234e215b9d9a2d85bcd62db1eec901f Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 5 Aug 2012 20:52:22 +0200 Subject: [PATCH] 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. --- code/model/SiteConfig.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/model/SiteConfig.php b/code/model/SiteConfig.php index 758e0483..56887e05 100644 --- a/code/model/SiteConfig.php +++ b/code/model/SiteConfig.php @@ -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