From 68c40402999894d267e49674585913be1e913458 Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Thu, 9 Jun 2016 13:40:29 +0100 Subject: [PATCH] FIX No longer hardcoding admin links --- code/Report.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/Report.php b/code/Report.php index 184291cc..56e8561e 100644 --- a/code/Report.php +++ b/code/Report.php @@ -144,10 +144,10 @@ class SS_Report extends ViewableData { public function getLink($action = null) { return Controller::join_links( - 'admin/reports/', - "$this->class", - '/', // trailing slash needed if $action is null! - "$action" + Config::inst()->get('AdminRootController', 'url_base'), + Config::inst()->get('ReportAdmin', 'url_segment'), + get_class($this), + $action ); }