--- jquery_ui.install.orig 2011-02-25 02:08:46.000000000 +0000
+++ jquery_ui.install 2011-06-01 18:13:44.000000000 +0000
@@ -28,13 +28,15 @@
else {
// Required library wasn't found. Abort installation.
$requirements['jquery_ui']['value'] = $t('Not found');
// Provide a download link to the jQuery UI development bundle. The provided
// link will list the latest 1.6.x build.
- $requirements['jquery_ui']['description'] = $t('The jQuery UI plugin is missing. Download and extract it to your jquery_ui module directory.', array(
+ $requirements['jquery_ui']['description'] = $t('The jQuery UI plugin is missing. Download and extract it into the @directory directory. Rename the extracted folder to @library-folder.', array(
'@jqueryui' => 'http://jqueryui.com',
'@download' => 'http://code.google.com/p/jquery-ui/downloads/list?q=1.6',
+ '@directory' => 'sites/all/libraries',
+ '@library-folder' => 'jquery.ui',
));
$requirements['jquery_ui']['severity'] = REQUIREMENT_ERROR;
}
return $requirements;
--- jquery_ui.module.orig 2011-02-25 02:08:46.000000000 +0000
+++ jquery_ui.module 2011-06-01 18:09:36.000000000 +0000
@@ -94,12 +94,12 @@
}
// Manually check sites/all/libraries in case Libraries API is not available.
elseif (file_exists('./sites/all/libraries/jquery.ui')) {
$path = 'sites/all/libraries/jquery.ui';
}
- // Check the module directory for backwards compatibility.
- else {
+ // Check the module directory for backwards compatibility if other methods fail.
+ if ($path == FALSE) {
// drupal_get_path() is not available during Drupal installation.
if (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE == 'install') {
$path = drupal_substr(dirname(__FILE__), drupal_strlen(getcwd()) + 1);
$path = strtr($path, '\\', '/');
$path .= '/jquery.ui';