mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
FIX No longer hardcoding admin links
This commit is contained in:
parent
1d8f3b0c7c
commit
68c4040299
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user