From 345dbc8a4fa38affc6cc4cc662a58ec01290f5dc Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Tue, 25 Sep 2012 15:31:42 +1200 Subject: [PATCH] BUG Fixing broken links "admin/show", should be "admin/pages..." --- code/model/SiteTree.php | 8 ++++---- tasks/RemoveOrphanedPagesTask.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/model/SiteTree.php b/code/model/SiteTree.php index a54bf141..0ea23c4e 100644 --- a/code/model/SiteTree.php +++ b/code/model/SiteTree.php @@ -1771,9 +1771,9 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid $parentPage = $linkedPage->Parent; if($parentPage) { if($parentPage->ID) { - $parentPageLinks[] = "ID\">{$parentPage->Title}"; + $parentPageLinks[] = "ID\">{$parentPage->Title}"; } else { - $parentPageLinks[] = "ID\">" . + $parentPageLinks[] = "ID\">" . _t('SiteTree.TOPLEVEL', 'Site Content (Top Level)') . ""; } @@ -1821,7 +1821,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid ); $dependentTable->getConfig()->getComponentByType('GridFieldDataColumns') ->setFieldFormatting(array( - 'Title' => '$Title', + 'Title' => '$Title', 'AbsoluteLink' => '$value', )); } @@ -2747,4 +2747,4 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid self::$cache_permissions = array(); } -} \ No newline at end of file +} diff --git a/tasks/RemoveOrphanedPagesTask.php b/tasks/RemoveOrphanedPagesTask.php index d2aeaaf5..35fa534a 100644 --- a/tasks/RemoveOrphanedPagesTask.php +++ b/tasks/RemoveOrphanedPagesTask.php @@ -102,7 +102,7 @@ in the other stage:
) ); $label = sprintf( - '%s (#%d, Last Modified Date: %s, Last Modifier: %s, %s)', + '%s (#%d, Last Modified Date: %s, Last Modifier: %s, %s)', $orphan->ID, $orphan->Title, $orphan->ID,