diff options
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.install | 2 | ||||
-rw-r--r-- | modules/system/system.module | 2 | ||||
-rw-r--r-- | modules/system/system.test | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index 0f337467e..f49788a2f 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -172,7 +172,7 @@ function system_requirements($phase) { } $description .= ' ' . $t('You can <a href="@cron">run cron manually</a>.', array('@cron' => url('admin/reports/status/run-cron'))); - $description .= '<br />' . $t('To run cron from outside the site, go to <a href="!cron">!cron</a>', array('!cron' => url($base_url . '/cron.php', array('external' => TRUE, 'query' => 'cron_key=' . variable_get('cron_key', 'drupal'))))); + $description .= '<br />' . $t('To run cron from outside the site, go to <a href="!cron">!cron</a>', array('!cron' => url($base_url . '/cron.php', array('external' => TRUE, 'query' => array('cron_key' => variable_get('cron_key', 'drupal')))))); $requirements['cron'] = array( 'title' => $t('Cron maintenance tasks'), diff --git a/modules/system/system.module b/modules/system/system.module index b8ff23d77..a4cc60ed1 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -2336,7 +2336,7 @@ function system_admin_compact_mode() { function system_admin_compact_page($mode = 'off') { global $user; user_save($user, array('admin_compact_mode' => ($mode == 'on'))); - drupal_goto(drupal_get_destination()); + drupal_goto(); } /** diff --git a/modules/system/system.test b/modules/system/system.test index 6d1e4d142..3738cd2f5 100644 --- a/modules/system/system.test +++ b/modules/system/system.test @@ -379,12 +379,12 @@ class CronRunTestCase extends DrupalWebTestCase { // Run cron anonymously with a random cron key. $key = $this->randomName(16); - $this->drupalGet($base_url . '/cron.php', array('external' => TRUE, 'query' => 'cron_key=' . $key)); + $this->drupalGet($base_url . '/cron.php', array('external' => TRUE, 'query' => array('cron_key' => $key))); $this->assertResponse(403); // Run cron anonymously with the valid cron key. $key = variable_get('cron_key', 'drupal'); - $this->drupalGet($base_url . '/cron.php', array('external' => TRUE, 'query' => 'cron_key=' . $key)); + $this->drupalGet($base_url . '/cron.php', array('external' => TRUE, 'query' => array('cron_key' => $key))); $this->assertResponse(200); // Execute cron directly. |