mirror of
https://github.com/silverstripe/silverstripe-externallinks.git
synced 2024-06-27 23:19:26 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
03b47fb8eb | ||
|
72d77a00c2 |
25
.travis.yml
25
.travis.yml
|
@ -1,26 +1,21 @@
|
||||||
# See https://github.com/silverstripe/silverstripe-travis-support for setup details
|
# See https://github.com/silverstripe/silverstripe-travis-support for setup details
|
||||||
|
|
||||||
sudo: false
|
dist: trusty
|
||||||
|
|
||||||
language: php
|
language: php
|
||||||
|
|
||||||
php:
|
|
||||||
- 5.4
|
|
||||||
- 5.5
|
|
||||||
|
|
||||||
env:
|
|
||||||
- DB=MYSQL CORE_RELEASE=3.5
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- php: 5.6
|
- php: '5.6'
|
||||||
env: DB=MYSQL CORE_RELEASE=3
|
|
||||||
- php: 5.6
|
|
||||||
env: DB=MYSQL CORE_RELEASE=3.1
|
|
||||||
- php: 5.6
|
|
||||||
env: DB=PGSQL CORE_RELEASE=3.2
|
|
||||||
- php: 7.1
|
|
||||||
env: DB=MYSQL CORE_RELEASE=3.6
|
env: DB=MYSQL CORE_RELEASE=3.6
|
||||||
|
- php: '7.0'
|
||||||
|
env: DB=MYSQL CORE_RELEASE=3.7
|
||||||
|
- php: '7.1'
|
||||||
|
env: DB=PGSQL CORE_RELEASE=3.7
|
||||||
|
- php: '7.2'
|
||||||
|
env: DB=MYSQL CORE_RELEASE=3.7
|
||||||
|
- php: '7.3'
|
||||||
|
env: DB=MYSQL CORE_RELEASE=3.7
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- composer self-update || true
|
- composer self-update || true
|
||||||
|
|
|
@ -35,11 +35,19 @@ class BrokenExternalLinksReport extends SS_Report {
|
||||||
"title" => 'Page link is on',
|
"title" => 'Page link is on',
|
||||||
'formatting' => function($value, $item) {
|
'formatting' => function($value, $item) {
|
||||||
$page = $item->Page();
|
$page = $item->Page();
|
||||||
return sprintf(
|
|
||||||
'<a href="%s">%s</a>',
|
if ($page) {
|
||||||
Convert::raw2att($page->CMSEditLink()),
|
return sprintf(
|
||||||
Convert::raw2xml($page->Title)
|
'<a href="%s">%s</a>',
|
||||||
);
|
Convert::raw2att($page->CMSEditLink()),
|
||||||
|
Convert::raw2xml($page->Title)
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
return sprintf(
|
||||||
|
'%s',
|
||||||
|
$item->Track()->PageID
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -21,10 +21,10 @@
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"hafriedlander/silverstripe-phockito": "*",
|
"hafriedlander/silverstripe-phockito": "*",
|
||||||
"phpunit/PHPUnit": "~3.7@stable"
|
"phpunit/phpunit": "^5.7"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"silverstripe/queuedjobs": "Speeds up running the job for Content Editors fropm the report"
|
"silverstripe/queuedjobs": "Speeds up running the job for Content Editors fropm the report"
|
||||||
},
|
},
|
||||||
"extra": []
|
"extra": []
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user