Merge pull request #15181 from seamuslee001/mailing_search_date_picker_conversion
[civicrm-core.git] / CRM / Core / Invoke.php
index 9a9e04a9327b3000f32cb11bce2ce897acd574ca..9f9a8b776b56d23b77fa2bc666be70836dccf9a8 100644 (file)
@@ -80,7 +80,6 @@ class CRM_Core_Invoke {
       // may exit
       self::hackMenuRebuild($args);
       self::init($args);
-      self::hackStandalone($args);
       $item = self::getItem($args);
       return self::runItem($item);
     }
@@ -140,26 +139,6 @@ class CRM_Core_Invoke {
     $i18n = CRM_Core_I18n::singleton();
   }
 
-  /**
-   * Hackish support for /standalone/*
-   *
-   * @param array $args
-   *   List of path parts.
-   * @void
-   */
-  public static function hackStandalone($args) {
-    $config = CRM_Core_Config::singleton();
-    if ($config->userFramework == 'Standalone') {
-      $session = CRM_Core_Session::singleton();
-      if ($session->get('new_install') !== TRUE) {
-        CRM_Core_Standalone::sidebarLeft();
-      }
-      elseif ($args[1] == 'standalone' && $args[2] == 'register') {
-        CRM_Core_Menu::store();
-      }
-    }
-  }
-
   /**
    * Determine which menu $item corresponds to $args
    *