From c4f1af803c32435032b13dc77ea0b4ce22c62e42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yerai=20Rodr=C3=ADguez?= Date: Fri, 12 Sep 2025 12:40:33 +0200 Subject: [PATCH] MDL-86596 Profiling: add breadcrumb node to profiling detail page Boost theme removes the last item action. This adds an extra node so the profile run details page breadcrumb is clickable in both Classic and Boost themes. --- admin/tool/profiling/index.php | 6 +++--- admin/tool/profiling/lang/en/tool_profiling.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/tool/profiling/index.php b/admin/tool/profiling/index.php index d8dc841046a..e2173761349 100644 --- a/admin/tool/profiling/index.php +++ b/admin/tool/profiling/index.php @@ -52,9 +52,9 @@ if ($listurl) { } // Add a new nav item to make $listurl clickable for the Boost theme. -if (isset($script)) { - $lastrunnav = get_string('lastrun', 'tool_profiling'); - $PAGE->navbar->add($lastrunnav); +if (isset($script) || isset($runid)) { + $detailnav = get_string('detailview', 'tool_profiling'); + $PAGE->navbar->add($detailnav); } // Header diff --git a/admin/tool/profiling/lang/en/tool_profiling.php b/admin/tool/profiling/lang/en/tool_profiling.php index 14e8c7b0d37..4390fddefc6 100644 --- a/admin/tool/profiling/lang/en/tool_profiling.php +++ b/admin/tool/profiling/lang/en/tool_profiling.php @@ -31,6 +31,7 @@ $string['cannotfindanyrunforurl'] = 'Sorry, cannot find any profiling run for th $string['cannotfindanyrunforrunid'] = 'Sorry, cannot find the \'{$a}\' profiling run'; $string['comment'] = 'Comment'; $string['cputime'] = 'CPU time'; +$string['detailview'] = 'Summary of run'; $string['differencesbetween2runsof'] = 'Differences between 2 runs of {$a}'; $string['executiontime'] = 'Execution time'; $string['export'] = 'Export'; @@ -41,7 +42,6 @@ $string['importok'] = 'File "{$a}" imported successfully.'; $string['importprefix'] = 'Import prefix'; $string['importproblem'] = 'Some problem happened importing the file "{$a}".'; $string['lastrunof'] = 'Summary of last run of {$a}'; -$string['lastrun'] = 'Summary of last run'; $string['markreferencerun'] = 'Mark as reference run/comment'; $string['memory'] = 'Memory used'; $string['pluginname'] = 'Profiling runs';