summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.admin.inc4
-rw-r--r--modules/system/system.install8
2 files changed, 6 insertions, 6 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 83cca4ad2..6fd477674 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -1734,7 +1734,7 @@ function system_clean_url_settings() {
// When accessing this form using a non-clean URL, allow a re-check to make
// sure clean URLs can be disabled at all times.
$available = FALSE;
- if (strpos(request_uri(), '?q=') === FALSE || drupal_get_session('clean_url')) {
+ if (strpos(request_uri(), '?q=') === FALSE || !empty($_SESSION['clean_url'])) {
$available = TRUE;
}
else {
@@ -1745,7 +1745,7 @@ function system_clean_url_settings() {
}
if ($available) {
- drupal_set_session('clean_url', TRUE);
+ $_SESSION['clean_url'] = TRUE;
$form['clean_url'] = array(
'#type' => 'checkbox',
diff --git a/modules/system/system.install b/modules/system/system.install
index 2bfe95db7..1f535c586 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -1983,10 +1983,10 @@ function system_update_6021() {
// Multi-part update
if (!isset($_SESSION['system_update_6021'])) {
db_add_field($ret, 'menu', 'converted', array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'));
- drupal_set_session('system_update_6021_max', db_result(db_query('SELECT COUNT(*) FROM {menu}')));
- drupal_set_session('menu_menu_map', array(1 => 'navigation'));
+ $_SESSION['system_update_6021_max'] = db_result(db_query('SELECT COUNT(*) FROM {menu}'));
+ $_SESSION['menu_menu_map'] = array(1 => 'navigation');
// 0 => FALSE is for new menus, 1 => FALSE is for the navigation.
- drupal_set_session('menu_item_map', array(0 => FALSE, 1 => FALSE));
+ $_SESSION['menu_item_map'] = array(0 => FALSE, 1 => FALSE);
$table = array(
'fields' => array(
'menu_name' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''),
@@ -1997,7 +1997,7 @@ function system_update_6021() {
);
db_create_table($ret, 'menu_custom', $table);
db_query("INSERT INTO {menu_custom} (menu_name, title, description) VALUES ('%s', '%s', '%s')", $menus['navigation']);
- drupal_set_session('system_update_6021', 0);
+ $_SESSION['system_update_6021'] = 0;
}
$limit = 50;