Projet

Général

Profil

Révision cd5c298a

Ajouté par Geoffroy Desvernay il y a plus de 5 ans

MAJ 7.60 -> 7.62

Voir les différences:

drupal7/modules/system/system.admin.inc
572 572
    // Process the theme and all its base themes.
573 573
    foreach ($theme_keys as $theme) {
574 574
      // Include the theme-settings.php file.
575
      $filename = DRUPAL_ROOT . '/' . str_replace("/$theme.info", '', $themes[$theme]->filename) . '/theme-settings.php';
576
      if (file_exists($filename)) {
577
        require_once $filename;
575
      $theme_settings_path = drupal_get_path('theme', $theme) . '/theme-settings.php';
576
      if (file_exists(DRUPAL_ROOT . '/' . $theme_settings_path)) {
577
        require_once DRUPAL_ROOT . '/' . $theme_settings_path;
578
        $form_state['build_info']['files'][] = $theme_settings_path;
578 579
      }
579 580

  
580 581
      // Call theme-specific settings.
......
1812 1813
    '#title' => t('Private file system path'),
1813 1814
    '#default_value' => variable_get('file_private_path', ''),
1814 1815
    '#maxlength' => 255,
1815
    '#description' => t('An existing local file system path for storing private files. It should be writable by Drupal and not accessible over the web. See the online handbook for <a href="@handbook">more information about securing private files</a>.', array('@handbook' => 'http://drupal.org/documentation/modules/file')),
1816
    '#description' => t('An existing local file system path for storing private files. It should be writable by Drupal and not accessible over the web. See the online handbook for <a href="@handbook">more information about securing private files</a>.', array('@handbook' => 'https://www.drupal.org/docs/7/core/modules/file/overview')),
1816 1817
    '#after_build' => array('system_check_directory'),
1817 1818
  );
1818 1819

  
......
2565 2566
/**
2566 2567
 * Returns HTML for the status report.
2567 2568
 *
2569
 * This theme function is dependent on install.inc being loaded, because
2570
 * that's where the constants are defined.
2571
 *
2568 2572
 * @param $variables
2569 2573
 *   An associative array containing:
2570
 *   - requirements: An array of requirements.
2574
 *   - requirements: An array of requirements/status items. Each requirement
2575
 *     is an associative array containing the following elements:
2576
 *     - title: The name of the requirement.
2577
 *     - value: (optional) The current value (version, time, level, etc).
2578
 *     - description: (optional) The description of the requirement.
2579
 *     - severity: (optional) The requirement's result/severity level, one of:
2580
 *       - REQUIREMENT_INFO: Status information.
2581
 *       - REQUIREMENT_OK: The requirement is satisfied.
2582
 *       - REQUIREMENT_WARNING: The requirement failed with a warning.
2583
 *       - REQUIREMENT_ERROR: The requirement failed with an error.
2571 2584
 *
2572 2585
 * @ingroup themeable
2573 2586
 */

Formats disponibles : Unified diff