Projet

Général

Profil

Révision 6331c987

Ajouté par Assos Assos il y a environ 10 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/variable/variable_realm/variable_realm.module
29 29
 * Implements hook_init()
30 30
 *
31 31
 * Let realms be overriden by query string parameters, but only for:
32
 * - Admin paths (not variable admin pages)
32
 * - Admin paths (not variable realm admin pages)
33 33
 */
34 34
function variable_realm_init() {
35
  if (arg(0) == 'admin' && arg(3) != 'variable' && ($params = variable_realm_params()) && user_access('administer site configuration')) {
35
  if (arg(0) == 'admin' && (arg(3) != 'variable' || arg(4) != 'realm') && ($params = variable_realm_params()) && user_access('administer site configuration')) {
36 36
    foreach ($params as $realm_name => $realm_key) {
37 37
      variable_realm_switch($realm_name, $realm_key, FALSE);
38 38
    }

Formats disponibles : Unified diff