mirror of
https://github.com/tag1consulting/d7_to_d10_migration.git
synced 2025-09-06 17:11:21 +00:00
Update Drupal 7 dependencies
This commit is contained in:
parent
7d902ba1ef
commit
13df912654
391 changed files with 2900 additions and 1502 deletions
|
@ -26,7 +26,7 @@ function drupal_var_export($var, $prefix = '') {
|
|||
// Don't export keys if the array is non associative.
|
||||
$export_keys = array_values($var) != $var;
|
||||
foreach ($var as $key => $value) {
|
||||
$output .= ' ' . ($export_keys ? drupal_var_export($key) . ' => ' : '') . drupal_var_export($value, ' ', FALSE) . ",\n";
|
||||
$output .= ' ' . ($export_keys ? drupal_var_export($key) . ' => ' : '') . drupal_var_export($value, ' ') . ",\n";
|
||||
}
|
||||
$output .= ')';
|
||||
}
|
||||
|
@ -35,7 +35,6 @@ function drupal_var_export($var, $prefix = '') {
|
|||
$output = $var ? 'TRUE' : 'FALSE';
|
||||
}
|
||||
elseif (is_string($var)) {
|
||||
$line_safe_var = str_replace("\n", '\n', $var);
|
||||
if (strpos($var, "\n") !== FALSE || strpos($var, "'") !== FALSE) {
|
||||
// If the string contains a line break or a single quote, use the
|
||||
// double quote export mode. Encode backslash and double quotes and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue