Skip to content

Commit

Permalink
Update CMSEditLinkAPI.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnysideup authored Jul 1, 2020
1 parent e83fd13 commit 3cc3cad
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Api/CMSEditLinkAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class CMSEditLinkAPI
* {
* return CMSEditLinkAPI::find_edit_link_for_object($this, $action);
* };
* returns an empty string if not found!
*
* @param DataObject|string $objectOrClassName
* @param string $action
Expand Down Expand Up @@ -124,10 +125,7 @@ public static function find_edit_link_for_object($objectOrClassName, $action = n
);
}

return Controller::join_links(
Director::baseURL(),
'admin/not-found'
);
return '';
}

protected static function sanitize_class_name(string $className) : string
Expand Down

0 comments on commit 3cc3cad

Please sign in to comment.