~ubuntu-branches/ubuntu/jaunty/drupal6/jaunty

« back to all changes in this revision

Viewing changes to modules/system/system.install

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano, Luigi Gangitano
  • Date: 2009-03-01 18:26:25 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090301182625-me2h8b2u87e8oneg
Tags: 6.10-1
[ Luigi Gangitano ]
* New upstream release
  - This version fixes two Windows-only security issues
    (Ref: SA-CORE-2009-003, SA-CORE-2009-004)
    Debian is not affected by this vulnerabilites

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
// $Id: system.install,v 1.238.2.8 2009/01/14 21:36:16 goba Exp $
 
2
// $Id: system.install,v 1.238.2.12 2009/02/25 14:02:46 goba Exp $
3
3
 
4
4
/**
5
5
 * Test and report Drupal installation requirements.
64
64
  $memory_limit = ini_get('memory_limit');
65
65
  $requirements['php_memory_limit'] = array(
66
66
    'title' => $t('PHP memory limit'),
67
 
    'value' => $memory_limit,
 
67
    'value' => $memory_limit == -1 ? t('-1 (Unlimited)') : $memory_limit,
68
68
  );
69
69
 
70
 
  if ($memory_limit && parse_size($memory_limit) < parse_size(DRUPAL_MINIMUM_PHP_MEMORY_LIMIT)) {
 
70
  if ($memory_limit && $memory_limit != -1 && parse_size($memory_limit) < parse_size(DRUPAL_MINIMUM_PHP_MEMORY_LIMIT)) {
71
71
    $description = '';
72
72
    if ($phase == 'install') {
73
73
      $description = $t('Consider increasing your PHP memory limit to %memory_minimum_limit to help prevent errors in the installation process.', array('%memory_minimum_limit' => DRUPAL_MINIMUM_PHP_MEMORY_LIMIT));
1095
1095
      ),
1096
1096
    'unique keys' => array('dst_language' => array('dst', 'language')),
1097
1097
    'primary key' => array('pid'),
1098
 
    'indexes' => array('src' => array('src')),
 
1098
    'indexes' => array('src_language' => array('src', 'language')),
1099
1099
    );
1100
1100
 
1101
1101
  return $schema;
1161
1161
  db_add_primary_key($ret, 'term_node', array('vid', 'tid', 'nid'));
1162
1162
  db_add_index($ret, 'term_node', 'vid', array('vid'));
1163
1163
 
1164
 
  db_query('UPDATE {term_node} t SET vid = (SELECT vid FROM {node} n WHERE t.nid = n.nid)');
 
1164
  db_query('UPDATE {term_node} SET vid = (SELECT vid FROM {node} n WHERE {term_node}.nid = n.nid)');
1165
1165
  return $ret;
1166
1166
}
1167
1167
 
1802
1802
        $item['router_path'] = $item['path'];
1803
1803
        $item['updated'] = FALSE;
1804
1804
      }
 
1805
      if ($item['description']) {
 
1806
        $item['options']['attributes']['title'] = $item['description'];
 
1807
      }      
 
1808
      
1805
1809
      // Save the link.
1806
1810
      menu_link_save($item);
1807
1811
      $_SESSION['menu_item_map'][$item['mid']] = array('mlid' => $item['mlid'], 'menu_name' => $item['menu_name']);
2534
2538
 
2535
2539
 
2536
2540
/**
 
2541
 * Replace src index on the {url_alias} table with src, language.
 
2542
 */
 
2543
function system_update_6049() {
 
2544
  $ret = array();
 
2545
  db_drop_index($ret, 'url_alias', 'src');
 
2546
  db_add_index($ret, 'url_alias', 'src_language', array('src', 'language'));
 
2547
  return $ret;
 
2548
}
 
2549
 
 
2550
/**
2537
2551
 * @} End of "defgroup updates-5.x-to-6.x"
2538
2552
 * The next series of updates should start at 7000.
2539
2553
 */