includes/functions.php
changeset 1123 777f32ac6b7c
parent 1115 b3c249d06990
child 1133 6e51ca5e29eb
--- a/includes/functions.php	Sat Sep 26 15:14:15 2009 -0400
+++ b/includes/functions.php	Sat Sep 26 15:21:51 2009 -0400
@@ -293,7 +293,16 @@
   
   return ( $sanitize ) ? sanitize_page_id($title) : $title;
 }
- 
+
+/**
+ * Returns true if we are allowed to have a page with a fully blank URL string. This page magically exists when you set the main page to blank.
+ * @return bool
+ */
+
+function have_blank_urlname_page()
+{
+  return getConfig('main_page', 'Main_Page') == '' || getConfig('main_page', getConfig('main_page', 'Main_Page')) == '';
+}
 
 /**
  * Enano replacement for date(). Accounts for individual users' timezone preferences.