Issue #1329914 follow-up by chx: Improve comments in drupal_path_initialize()

8.0.x
webchick 2011-11-24 13:42:45 -08:00
parent ed03c4bb75
commit 2517db019f
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,8 @@
* Initialize the $_GET['q'] variable to the proper normal path.
*/
function drupal_path_initialize() {
// Ensure $_GET['q'] is set before calling drupal_normal_path().
// Ensure $_GET['q'] is set before calling drupal_normal_path(), to support
// path caching with hook_url_inbound_alter().
if (empty($_GET['q'])) {
$_GET['q'] = variable_get('site_frontpage', 'node');
}