Skip to content
Permalink
Browse files

BUG Fixing broken links "admin/show", should be "admin/pages..."

  • Loading branch information
halkyon committed Sep 25, 2012
1 parent 548ec24 commit 345dbc8a4fa38affc6cc4cc662a58ec01290f5dc
Showing with 5 additions and 5 deletions.
  1. +4 −4 code/model/SiteTree.php
  2. +1 −1 tasks/RemoveOrphanedPagesTask.php
@@ -1771,9 +1771,9 @@ public function getCMSFields() {
$parentPage = $linkedPage->Parent;
if($parentPage) {
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 {
$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)') .
"</a>";
}
@@ -1821,7 +1821,7 @@ public function getCMSFields() {
);
$dependentTable->getConfig()->getComponentByType('GridFieldDataColumns')
->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>',
));
}
@@ -2747,4 +2747,4 @@ static public function on_db_reset() {
self::$cache_permissions = array();
}
}
}
@@ -102,7 +102,7 @@ public function Form() {
)
);
$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->Title,
$orphan->ID,

0 comments on commit 345dbc8

Please sign in to comment.
You can’t perform that action at this time.