mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #211 from halkyon/broken_urls_cms
BUG Fixing broken links "admin/show", should be "admin/pages..."
This commit is contained in:
commit
ef318e3899
@ -1771,9 +1771,9 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
$parentPage = $linkedPage->Parent;
|
$parentPage = $linkedPage->Parent;
|
||||||
if($parentPage) {
|
if($parentPage) {
|
||||||
if($parentPage->ID) {
|
if($parentPage->ID) {
|
||||||
$parentPageLinks[] = "<a class=\"cmsEditlink\" href=\"admin/show/$linkedPage->ID\">{$parentPage->Title}</a>";
|
$parentPageLinks[] = "<a class=\"cmsEditlink\" href=\"admin/pages/edit/show/$linkedPage->ID\">{$parentPage->Title}</a>";
|
||||||
} else {
|
} else {
|
||||||
$parentPageLinks[] = "<a class=\"cmsEditlink\" href=\"admin/show/$linkedPage->ID\">" .
|
$parentPageLinks[] = "<a class=\"cmsEditlink\" href=\"admin/pages/edit/show/$linkedPage->ID\">" .
|
||||||
_t('SiteTree.TOPLEVEL', 'Site Content (Top Level)') .
|
_t('SiteTree.TOPLEVEL', 'Site Content (Top Level)') .
|
||||||
"</a>";
|
"</a>";
|
||||||
}
|
}
|
||||||
@ -1821,7 +1821,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
);
|
);
|
||||||
$dependentTable->getConfig()->getComponentByType('GridFieldDataColumns')
|
$dependentTable->getConfig()->getComponentByType('GridFieldDataColumns')
|
||||||
->setFieldFormatting(array(
|
->setFieldFormatting(array(
|
||||||
'Title' => '<a href=\"admin/show/$ID\">$Title</a>',
|
'Title' => '<a href=\"admin/pages/edit/show/$ID\">$Title</a>',
|
||||||
'AbsoluteLink' => '<a href=\"$value\">$value</a>',
|
'AbsoluteLink' => '<a href=\"$value\">$value</a>',
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@ -2747,4 +2747,4 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
self::$cache_permissions = array();
|
self::$cache_permissions = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,7 @@ in the other stage:<br />
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
$label = sprintf(
|
$label = sprintf(
|
||||||
'<a href="admin/show/%d">%s</a> <small>(#%d, Last Modified Date: %s, Last Modifier: %s, %s)</small>',
|
'<a href="admin/pages/edit/show/%d">%s</a> <small>(#%d, Last Modified Date: %s, Last Modifier: %s, %s)</small>',
|
||||||
$orphan->ID,
|
$orphan->ID,
|
||||||
$orphan->Title,
|
$orphan->Title,
|
||||||
$orphan->ID,
|
$orphan->ID,
|
||||||
|
Loading…
Reference in New Issue
Block a user