copyright and version fixes
[civicrm-core.git] / CRM / Core / Smarty / plugins / function.crmNavigationMenu.php
index e38d8f0a34b50ba3962b75d045d7d1bd87e4a015..8fcbd47069effb1e1c3ce105cf40f7ae2801f686 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
  * $Id$
  *
  */
@@ -58,12 +58,11 @@ function smarty_function_crmNavigationMenu($params, &$smarty) {
     if ($contactID) {
       // These params force the browser to refresh the js file when switching user, domain, or language
       // We don't put them as a query string because some browsers will refuse to cache a page with a ? in the url
-      // We end the string with .js to trick apache mods into sending pro-caching headers
       // @see CRM_Admin_Page_AJAX::getNavigationMenu
       $lang = $config->lcMessages;
       $domain = CRM_Core_Config::domainID();
       $key = CRM_Core_BAO_Navigation::getCacheKey($contactID);
-      $src = CRM_Utils_System::url("civicrm/ajax/menujs/$contactID/$lang/$domain/$key.js");
+      $src = CRM_Utils_System::url("civicrm/ajax/menujs/$contactID/$lang/$domain/$key");
       return '<script type="text/javascript" src="' . $src . '"></script>';
     }
   }