Skip to content

Commit a0aa365

Browse files
committed
Merge branch '7.x' into 7.x-pimple
2 parents 22d1526 + 95614ce commit a0aa365

File tree

6 files changed

+41
-19
lines changed

6 files changed

+41
-19
lines changed

CHANGELOG.txt

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11

22
Drupal 7.27, xxxx-xx-xx (development version)
33
-----------------------
4-
- Fixed up a bug in the Taxonomy module update function introduced in Drupal
5-
7.26 that caused memory and CPU problems on sites with very large numbers of
4+
- Replaced the term "weight" with "influence" in the content ranking settings
5+
for search, and added help text for administrators (string change).
6+
- Fixed untranslatable text strings in the administrative interface for the
7+
"Crop" effect provided by the Image module (minor string change).
8+
- Fixed a bug in the Taxonomy module update function introduced in Drupal 7.26
9+
that caused memory and CPU problems on sites with very large numbers of
610
unpublished nodes.
711

812
Drupal 7.26, 2014-01-15

includes/registry.inc

+6-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @{
1111
* The code registry engine.
1212
*
13-
* Drupal maintains an internal registry of all functions or classes in the
13+
* Drupal maintains an internal registry of all interfaces or classes in the
1414
* system, allowing it to lazy-load code files as needed (reducing the amount
1515
* of code that must be parsed on each request).
1616
*/
@@ -120,7 +120,10 @@ function registry_get_parsed_files() {
120120
}
121121

122122
/**
123-
* Parse all files that have changed since the registry was last built, and save their function and class listings.
123+
* Parse all changed files and save their interface and class listings.
124+
*
125+
* Parse all files that have changed since the registry was last built, and save
126+
* their interface and class listings.
124127
*
125128
* @param $files
126129
* The list of files to check and parse.
@@ -149,7 +152,7 @@ function _registry_parse_files($files) {
149152
}
150153

151154
/**
152-
* Parse a file and save its function and class listings.
155+
* Parse a file and save its interface and class listings.
153156
*
154157
* @param $filename
155158
* Name of the file we are going to parse.

modules/image/image.admin.inc

+8-8
Original file line numberDiff line numberDiff line change
@@ -592,15 +592,15 @@ function image_crop_form($data) {
592592
'#type' => 'radios',
593593
'#title' => t('Anchor'),
594594
'#options' => array(
595-
'left-top' => t('Top') . ' ' . t('Left'),
596-
'center-top' => t('Top') . ' ' . t('Center'),
597-
'right-top' => t('Top') . ' ' . t('Right'),
598-
'left-center' => t('Center') . ' ' . t('Left'),
595+
'left-top' => t('Top left'),
596+
'center-top' => t('Top center'),
597+
'right-top' => t('Top right'),
598+
'left-center' => t('Center left'),
599599
'center-center' => t('Center'),
600-
'right-center' => t('Center') . ' ' . t('Right'),
601-
'left-bottom' => t('Bottom') . ' ' . t('Left'),
602-
'center-bottom' => t('Bottom') . ' ' . t('Center'),
603-
'right-bottom' => t('Bottom') . ' ' . t('Right'),
600+
'right-center' => t('Center right'),
601+
'left-bottom' => t('Bottom left'),
602+
'center-bottom' => t('Bottom center'),
603+
'right-bottom' => t('Bottom right'),
604604
),
605605
'#theme' => 'image_anchor',
606606
'#default_value' => $data['anchor'],

modules/node/node.module

+2-2
Original file line numberDiff line numberDiff line change
@@ -1683,7 +1683,7 @@ function node_search_admin() {
16831683
);
16841684
$form['content_ranking']['#theme'] = 'node_search_admin';
16851685
$form['content_ranking']['info'] = array(
1686-
'#value' => '<em>' . t('The following numbers control which properties the content search should favor when ordering the results. Higher numbers mean more influence, zero means the property is ignored. Changing these numbers does not require the search index to be rebuilt. Changes take effect immediately.') . '</em>'
1686+
'#markup' => '<p><em>' . t('Influence is a numeric multiplier used in ordering search results. A higher number means the corresponding factor has more influence on search results; zero means the factor is ignored. Changing these numbers does not require the search index to be rebuilt. Changes take effect immediately.') . '</em></p>'
16871687
);
16881688

16891689
// Note: reversed to reflect that higher number = higher ranking.
@@ -1870,7 +1870,7 @@ function theme_node_search_admin($variables) {
18701870

18711871
$output = drupal_render($form['info']);
18721872

1873-
$header = array(t('Factor'), t('Weight'));
1873+
$header = array(t('Factor'), t('Influence'));
18741874
foreach (element_children($form['factors']) as $key) {
18751875
$row = array();
18761876
$row[] = $form['factors'][$key]['#title'];

modules/simpletest/tests/common.test

+2-2
Original file line numberDiff line numberDiff line change
@@ -1022,8 +1022,8 @@ class DrupalHTTPRequestTestCase extends DrupalWebTestCase {
10221022
$result = drupal_http_request($auth);
10231023

10241024
$this->drupalSetContent($result->data);
1025-
$this->assertRaw($username, '$_SERVER["PHP_AUTH_USER"] is passed correctly.');
1026-
$this->assertRaw($password, '$_SERVER["PHP_AUTH_PW"] is passed correctly.');
1025+
$this->assertRaw($username, 'Username is passed correctly.');
1026+
$this->assertRaw($password, 'Password is passed correctly.');
10271027
}
10281028

10291029
function testDrupalHTTPRequestRedirect() {

modules/simpletest/tests/system_test.module

+17-2
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,23 @@ function system_test_sleep($seconds) {
114114
}
115115

116116
function system_test_basic_auth_page() {
117-
$output = t('$_SERVER[\'PHP_AUTH_USER\'] is @username.', array('@username' => $_SERVER['PHP_AUTH_USER']));
118-
$output .= t('$_SERVER[\'PHP_AUTH_PW\'] is @password.', array('@password' => $_SERVER['PHP_AUTH_PW']));
117+
// The Authorization HTTP header is forwarded via Drupal's .htaccess file even
118+
// for PHP CGI SAPIs.
119+
if (isset($_SERVER['HTTP_AUTHORIZATION'])) {
120+
$authorization_header = $_SERVER['HTTP_AUTHORIZATION'];
121+
}
122+
// If using CGI on Apache with mod_rewrite, the forwarded HTTP header appears
123+
// in the redirected HTTP headers. See
124+
// https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpFoundation/ServerBag.php#L61
125+
elseif (isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])) {
126+
$authorization_header = $_SERVER['REDIRECT_HTTP_AUTHORIZATION'];
127+
}
128+
// Resemble PHP_AUTH_USER and PHP_AUTH_PW for a Basic authentication from
129+
// the HTTP_AUTHORIZATION header. See
130+
// http://www.php.net/manual/features.http-auth.php
131+
list($user, $pw) = explode(':', base64_decode(substr($authorization_header, 6)));
132+
$output = t('Username is @username.', array('@username' => $user));
133+
$output .= t('Password is @password.', array('@password' => $pw));
119134
return $output;
120135
}
121136

0 commit comments

Comments
 (0)