X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FInvoke.php;h=bb0e17b38a35ed64a5d477d5ca2f5a7ef5d11b96;hb=900eb33a20f6f8ed03c1a8da6259a61679935ac8;hp=05a726f43fa808badb1490215509afa566ab2881;hpb=fc22a71f4af84505bebc7c9760419de350c72b2a;p=civicrm-core.git diff --git a/CRM/Core/Invoke.php b/CRM/Core/Invoke.php index 05a726f43f..bb0e17b38a 100644 --- a/CRM/Core/Invoke.php +++ b/CRM/Core/Invoke.php @@ -1,7 +1,7 @@ urlPath = explode('/', $_GET[$config->userFrameworkURLVar]); } elseif (strstr($item['page_callback'], '_Controller')) { $addSequence = 'false'; @@ -414,10 +415,6 @@ class CRM_Core_Invoke { } if ($secondArg == 'edit' || $secondArg == 'create') { - // set the userContext stack - $session = CRM_Core_Session::singleton(); - $session->pushUserContext(CRM_Utils_System::url('civicrm/profile', 'reset=1')); - $buttonType = CRM_Utils_Array::value('_qf_Edit_cancel', $_POST); // CRM-5849: we should actually check the button *type*, but we get the *value*, potentially translated; // we should keep both English and translated checks just to make sure we also handle untranslated Cancels @@ -456,8 +453,13 @@ class CRM_Core_Invoke { } } - $page = new CRM_Profile_Page_Listings(); - return $page->run(); + if ($secondArg == 'view' || empty($secondArg)) { + $page = new CRM_Profile_Page_Listings(); + return $page->run(); + } + + CRM_Utils_System::permissionDenied(); + return; } /** @@ -489,6 +491,9 @@ class CRM_Core_Invoke { // also cleanup module permissions $config->cleanupPermissions(); + // also rebuild word replacement cache + CRM_Core_BAO_WordReplacement::rebuild(); + CRM_Core_BAO_Setting::updateSettingsFromMetaData(); CRM_Core_Resources::singleton()->resetCacheCode(); @@ -499,7 +504,7 @@ class CRM_Core_Invoke { ) { CRM_Core_DAO::triggerRebuild(); } - + CRM_Core_DAO_AllCoreTables::reinitializeCache(TRUE); CRM_Core_ManagedEntities::singleton(TRUE)->reconcile(); } }