mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
ENHANCMENT improved reporting around broken links/files (from r88993) (from r96305)
This commit is contained in:
parent
c91684d6d1
commit
a85521fcb1
@ -192,7 +192,7 @@ class SiteTreeSubsites extends SiteTreeDecorator {
|
||||
if($reverse) {
|
||||
$text = '<p>In addition, this page is marked as related by the following pages: </p><ul>';
|
||||
foreach($reverse as $rpage) {
|
||||
$text .= '<ul><a href="admin/show/' . $rpage->ID . '">' . $rpage->Title . '</a></ul>';
|
||||
$text .= '<ul><a href="admin/show/' . $rpage->ID . '">' . $rpage->Title . '</a> '.$rpage->AbsoluteLink().'</ul>';
|
||||
}
|
||||
$text .= '</ul>';
|
||||
|
||||
|
@ -84,7 +84,7 @@ class SubsitesVirtualPage extends VirtualPage {
|
||||
if ($this->CopyContentFromID) $this->HasBrokenLink = DataObject::get_by_id('SiteTree', $this->CopyContentFromID) ? false : true;
|
||||
Subsite::$disable_subsite_filter = $oldState;
|
||||
}
|
||||
|
||||
|
||||
function onBeforeWrite() {
|
||||
parent::onBeforeWrite();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user