includes/functions.php
changeset 1123 777f32ac6b7c
parent 1115 b3c249d06990
child 1133 6e51ca5e29eb
equal deleted inserted replaced
1122:e1606c85e937 1123:777f32ac6b7c
   291     }
   291     }
   292   }
   292   }
   293   
   293   
   294   return ( $sanitize ) ? sanitize_page_id($title) : $title;
   294   return ( $sanitize ) ? sanitize_page_id($title) : $title;
   295 }
   295 }
   296  
   296 
       
   297 /**
       
   298  * 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.
       
   299  * @return bool
       
   300  */
       
   301 
       
   302 function have_blank_urlname_page()
       
   303 {
       
   304   return getConfig('main_page', 'Main_Page') == '' || getConfig('main_page', getConfig('main_page', 'Main_Page')) == '';
       
   305 }
   297 
   306 
   298 /**
   307 /**
   299  * Enano replacement for date(). Accounts for individual users' timezone preferences.
   308  * Enano replacement for date(). Accounts for individual users' timezone preferences.
   300  * @param string Date-formatted string
   309  * @param string Date-formatted string
   301  * @param int Optional - UNIX timestamp value to use. If omitted, the current time is used.
   310  * @param int Optional - UNIX timestamp value to use. If omitted, the current time is used.