From a8296c5a54af1b4d6deeaeb0c62e2d1f0da40eea Mon Sep 17 00:00:00 2001 From: Aizat Faiz Date: Mon, 18 Apr 2011 21:21:08 -0700 Subject: [PATCH] Display file name in for easier browsing of code Summary: Having the filename in the <title> will make it easier to browse through many many tabs of diffusion Test Plan: Open up a file or directory in diffusion and ensure that it shows only the file name. Reviewed By: tuomaspelkonen Reviewers: epriestley, tuomaspelkonen, jungejason Commenters: epriestley CC: epriestley, aizatto, tuomaspelkonen Differential Revision: 150 --- .../controller/file/DiffusionBrowseFileController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/applications/diffusion/controller/file/DiffusionBrowseFileController.php b/src/applications/diffusion/controller/file/DiffusionBrowseFileController.php index 6427611ffe..6ea62608a0 100644 --- a/src/applications/diffusion/controller/file/DiffusionBrowseFileController.php +++ b/src/applications/diffusion/controller/file/DiffusionBrowseFileController.php @@ -83,10 +83,12 @@ class DiffusionBrowseFileController extends DiffusionController { $nav = $this->buildSideNav('browse', true); $nav->appendChild($content); + $basename = basename($this->getDiffusionRequest()->getPath()); + return $this->buildStandardPageResponse( $nav, array( - 'title' => 'Browse', + 'title' => $basename, )); }