summaryrefslogtreecommitdiff
path: root/sitemap.php
diff options
context:
space:
mode:
authorspiderr <spider@viovio.com>2011-11-30 14:25:28 -0500
committerspiderr <spider@viovio.com>2011-11-30 14:25:28 -0500
commitd319077664fa4e8a35d6165667bd177a190282e9 (patch)
tree0d7a474f6c91c3319fdae2c11c77c2db928b6106 /sitemap.php
parentda1f84775b3a68d68fd7b32e04ee18cd410c270b (diff)
downloadwiki-d319077664fa4e8a35d6165667bd177a190282e9.tar.gz
wiki-d319077664fa4e8a35d6165667bd177a190282e9.tar.bz2
wiki-d319077664fa4e8a35d6165667bd177a190282e9.zip
round sitemap tree depth to insist on one significnat digit priority
Diffstat (limited to 'sitemap.php')
-rw-r--r--sitemap.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/sitemap.php b/sitemap.php
index fa7f876..862f766 100644
--- a/sitemap.php
+++ b/sitemap.php
@@ -33,7 +33,7 @@ function process_book_list( $pList, $pDepth = 1 ) {
}
$hash['changefreq'] = $freq;
- $hash['priority'] = 1 - ($pDepth * .5 * .1);
+ $hash['priority'] = 1 - (round( $pDepth * .5 ) * .1);
$gSiteMapHash[$pList[$key]['content_id']] = $hash;
}
if( !empty( $pList[$key]['sub'] ) ) {