Commit 5ca0c573 authored by kiz_0987's avatar kiz_0987

#67789 - Updated error message for TinyMCE settings save failure.

parent 748c3845
......@@ -919,7 +919,7 @@ function _gallery_configure_url_rewrite() {
// 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.
$drupal_root = dirname(__FILE__);
$gallery_path = drupal_get_path('module', 'gallery');
$gallery_path = drupal_get_path('module', 'gallery');
$htaccess_path = str_replace($gallery_path, '', $drupal_root);
$title = t('Gallery2 URL Rewrite Module Auto-Configuration:');
......@@ -1001,7 +1001,7 @@ function _gallery_g2image_settings_form_validate(&$form_values) {
if (!file_check_directory($path)) {
$results['gallery_g2image']['title'] = $title;
$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));
$results['gallery_g2image']['notice'] = t('g2image does not seem to be installed for %mode mode in the required directory (%dir), or the directory is not writable. Please see the INSTALL.txt for instructions.', array('%mode' => $mode, '%dir' => '<drupal_path>'.$path));
$num_warnings++;
return array($num_errors, $num_warnings, $results['gallery_g2image']);
}
......
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