From b8e1e5c2d7b13965c6c01a0bde6b3f4b367b1f36 Mon Sep 17 00:00:00 2001 From: Alexander Bias Date: Sun, 8 Oct 2023 14:27:22 +0200 Subject: [PATCH] Improvement: Move classes/output/navigation/primary.php to classes/navigation/output/primary.php (where it should be located). --- CHANGES.md | 4 ++++ classes/{output/navigation => navigation/output}/primary.php | 2 +- layout/columns2.php | 2 +- layout/drawers.php | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) rename classes/{output/navigation => navigation/output}/primary.php (99%) diff --git a/CHANGES.md b/CHANGES.md index 29a7fcda251..af344cf3071 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,10 @@ moodle-theme_boost_union Changes ------- +### Unreleased + +* 2023-10-08 - Improvement: Move classes/output/navigation/primary.php to classes/navigation/output/primary.php (where it should be located). + ### v4.2-r3 * 2023-10-01 - Bugfix: Omit PHP deprecation warnings on PHP 8.2, solves #411. diff --git a/classes/output/navigation/primary.php b/classes/navigation/output/primary.php similarity index 99% rename from classes/output/navigation/primary.php rename to classes/navigation/output/primary.php index 51272cb4553..ee9b6674eec 100644 --- a/classes/output/navigation/primary.php +++ b/classes/navigation/output/primary.php @@ -22,7 +22,7 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -namespace theme_boost_union\output\navigation; +namespace theme_boost_union\navigation\output; use renderable; use renderer_base; diff --git a/layout/columns2.php b/layout/columns2.php index 8197e3d427c..fb68a373256 100644 --- a/layout/columns2.php +++ b/layout/columns2.php @@ -70,7 +70,7 @@ // Load the navigation from boost_union primary navigation, the extended version of core primary navigation. // It includes the smart menus and menu items, for multiple locations. -$primary = new theme_boost_union\output\navigation\primary($PAGE); +$primary = new theme_boost_union\navigation\output\primary($PAGE); $renderer = $PAGE->get_renderer('core'); $primarymenu = $primary->export_for_template($renderer); diff --git a/layout/drawers.php b/layout/drawers.php index f1e238d7a9d..9dc264dcab1 100644 --- a/layout/drawers.php +++ b/layout/drawers.php @@ -126,7 +126,7 @@ // Load the navigation from boost_union primary navigation, the extended version of core primary navigation. // It includes the smart menus and menu items, for multiple locations. -$primary = new theme_boost_union\output\navigation\primary($PAGE); +$primary = new theme_boost_union\navigation\output\primary($PAGE); $renderer = $PAGE->get_renderer('core'); $primarymenu = $primary->export_for_template($renderer);