Commit 4973b548 authored by kiz_0987's avatar kiz_0987

#55834 - Removes 'Call-time pass-by-reference has been deprecated' warning

parent c79b40e9
......@@ -749,7 +749,7 @@ function gallery_settings_form_validate($form_id, &$form) {
}
// Validate the g2image settings
list($num_errors, $num_warnings, $results_g2image) =
_gallery_g2image_settings_form_validate(&$form_values);
_gallery_g2image_settings_form_validate($form_values);
if ($results_g2image) {
$results['gallery_g2image'] = $results_g2image;
}
......@@ -804,7 +804,6 @@ function _gallery_configure_url_rewrite() {
$http = 'http' . (isset($_SERVER['HTTPS']) ? $_SERVER['HTTPS'] == 'on' ? 's' : '' : '');
$public_path = str_replace($http . '://' . $_SERVER['HTTP_HOST'],'', $base_url);
// Find the path to drupal. Will this always work?
// FIX NEEDED: This will fail if the module is installed in the sites/XXX/modules dir.
// Probably not a big deal for 99% of people.
......@@ -893,7 +892,7 @@ function _gallery_g2image_settings_form_validate(&$form_values) {
$results['gallery_g2image']['warning'] = true;
$results['gallery_g2image']['notice'] = t('g2image does not seem to be installed for %mode mode. Please see the INSTALL.txt for instructions.', array('%mode' => $mode));
$num_warnings++;
return array($num_errors, $num_warnings, $results['gallery_g2image']);
return array($num_errors, $num_warnings, $results['gallery_g2image']);
}
$cr = "\n";
$g2ic_gallery2_path = $form_values['gallery_dir'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment