CRM-13929 Refactor shared address form
[civicrm-core.git] / CRM / Core / Page.php
index 4ac7d41c09e3ce249aa238c9424e7bf8b2324127..c16e33a84fc44b66faf2d6881a7d4ea63af2db7e 100644 (file)
@@ -111,6 +111,13 @@ class CRM_Core_Page {
    */
   public $ajaxResponse = array();
 
+  /**
+   * Url path used to reach this page
+   *
+   * @var array
+   */
+  public $urlPath = array();
+
   /**
    * class constructor
    *
@@ -149,7 +156,7 @@ class CRM_Core_Page {
     }
 
     // if the request has a reset value, initialize the controller session
-    if (CRM_Utils_Array::value('reset', $_REQUEST)) {
+    if (!empty($_REQUEST['reset'])) {
       $this->reset();
     }
   }
@@ -212,6 +219,7 @@ class CRM_Core_Page {
     if (empty($_GET['snippet'])) {
       // Version check and intermittent alert to admins
       CRM_Utils_VersionCheck::singleton()->versionAlert();
+      CRM_Utils_Check_Security::singleton()->showPeriodicAlerts();
 
       // Debug msg once per hour
       if ($config->debug && CRM_Core_Permission::check('administer CiviCRM') && CRM_Core_Session::singleton()->timer('debug_alert', 3600)) {