mirror of
https://github.com/silverstripe/silverstripe-externallinks.git
synced 2024-10-22 15:05:44 +00:00
Fixing CurlLinkChecker::checkLink() using incorrect visibility
This commit is contained in:
parent
ec4c47915a
commit
486ccec95c
@ -24,7 +24,7 @@ class CurlLinkChecker implements LinkChecker {
|
||||
* @param string $href URL to check
|
||||
* @return int HTTP status code, or null if not checkable (not a link)
|
||||
*/
|
||||
protected function checkLink($href) {
|
||||
public function checkLink($href) {
|
||||
// Skip non-external links
|
||||
if(!preg_match('/^https?[^:]*:\/\//', $href)) return null;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user