+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2019 |
+ | Copyright CiviCRM LLC (c) 2004-2020 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2019
+ * @copyright CiviCRM LLC (c) 2004-2020
* $Id$
*
*/
* @return bool
*/
public function isFrontEndPage() {
- // Get the menu items.
- $args = explode('?', $_GET['q']);
- $path = $args[0];
+ $path = CRM_Utils_System::getUrlPath();
// Get the menu for above URL.
$item = CRM_Core_Menu::get($path);