From 7daa14610a00b3be220e5787d5bc227677ffa3c5 Mon Sep 17 00:00:00 2001 From: Penny Leach Date: Sat, 1 Jul 2006 11:55:39 +1200 Subject: [PATCH] include breakfast after gallery - fixes broken ordering --- index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 1bff776..f04b8c5 100644 --- a/index.php +++ b/index.php @@ -457,12 +457,12 @@ if (preg_match(PAT_ARCHIVES, $uri, $matches) || isset($serendipity['GET']['range } else if (preg_match(PAT_ABOUT, $uri, $matches)) { $serendipity['GET']['action'] = 'about'; include_once(S9Y_INCLUDE_PATH . 'include/genpage.inc.php'); -} else if (preg_match(PAT_BREAKFAST, $uri, $matches)) { - $serendipity['GET']['action'] = 'breakfast'; - include_once(S9Y_INCLUDE_PATH . 'include/genpage.inc.php'); } else if (preg_match(PAT_GALLERY, $uri, $matches)) { $serendipity['GET']['action'] = 'gallery'; include_once(S9Y_INCLUDE_PATH . 'include/genpage.inc.php'); +} else if (preg_match(PAT_BREAKFAST, $uri, $matches)) { + $serendipity['GET']['action'] = 'breakfast'; + include_once(S9Y_INCLUDE_PATH . 'include/genpage.inc.php'); } else if (preg_match('@/(index(\.php|\.html)?)|'. preg_quote($serendipity['indexFile']) .'@', $uri) || preg_match('@^/' . preg_quote(trim($serendipity['serendipityHTTPPath'], '/')) . '/?(\?.*)?$@', $uri)) { -- 2.39.5