Commit 327e991b authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4345 (Allow disabling default Pages menu)

parent 5eda17a1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -624,6 +624,7 @@ We have the following which are either unlikely to be useful, or potentially uns
  - [tt]mail_theme[/tt] -- set this to the name of a theme to force that theme to be used for all outbound e-mails. This is useful because otherwise the theme of the user triggering the e-mail to be sent will be used.
  - [tt]force_memory_sort__<catalogue-name>[/tt] -- set this to '1' to force an in-memory sort on a particular catalogue (this is slower, but it will sort more accurately by resolving language string fallback and Comcode fully before sorting)
  - [tt]search_do_days_fallback[/tt] -- set this to '0' if you don't want to re-search without a recency filter if no results were found
  - [tt]sitemap_orphans_to_pages[/tt] -- set this to '0' if you don't want orphaned pages to be put under the default Pages page grouping of the Sitemap 
 - Performance tuning (positive) [not official options as will break normal expectations of how the system will behave / complicate things]
  - [tt]slow_php_dns[/tt] -- set this to '1' if the server has very slow DNS resolution on the web server's main network interface, and therefore to do DNS resolution via the command line instead
  - [tt]lots_of_data_in_*[/tt] -- set this to '1', with '*' replaced with a database table name, if you want the Selectcode mechanism to work with recursive DB lookups rather than one huge flat lookup
+1 −1
Original line number Diff line number Diff line
@@ -295,7 +295,7 @@ class Hook_sitemap_page_grouping extends Hook_sitemap_base
            }

            // Extra ones to get merged in? (orphaned children)
            if ($page_grouping == 'pages' || $page_grouping == 'tools' || $page_grouping == 'cms') {
            if (((get_value('sitemap_orphans_to_pages') !== '0') && ($page_grouping == 'pages')) || $page_grouping == 'tools' || $page_grouping == 'cms') {
                if ($orphaned_pages === null) {
                    // Any left-behind pages
                    // NB: Code largely repeated in zone.php