Commit f83c2a49 authored by sun's avatar sun
Browse files

#325831 by sun: Fixed url() in hook_requirements() breaks install profiles.

parent 627c698c
......@@ -6,6 +6,7 @@ jQuery UI x.x-x.x, xxxx-xx-xx
jQuery UI 7.x-1.x, xxxx-xx-xx
-----------------------------
#325831 by sun: Fixed url() in hook_requirements() breaks install profiles.
#325831 by hanoii: Fixed drupal_get_path() in hook_requirements() breaks install
profiles.
#758910 by fp, sun: Fixed jQuery UI download link.
......
......@@ -31,11 +31,9 @@ function jquery_ui_requirements($phase) {
$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.7 build.
$requirements['jquery_ui']['description'] = $t('The <a href="@jqueryui">jQuery UI</a> plugin is missing. <a href="@download">Download</a> and extract it to your <em>jquery_ui</em> module directory. See <a href="@readme">README.txt</a> for more info.', array(
$requirements['jquery_ui']['description'] = $t('The <a href="@jqueryui">jQuery UI</a> plugin is missing. <a href="@download">Download</a> and extract it to your <em>jquery_ui</em> module directory.', array(
'@jqueryui' => 'http://jqueryui.com',
'@download' => 'http://code.google.com/p/jquery-ui/downloads/list?q=1.7',
// drupal_get_path() breaks install profiles.
'@readme' => dirname(str_replace(getcwd(), '', __FILE__)) . '/README.txt',
));
$requirements['jquery_ui']['severity'] = REQUIREMENT_ERROR;
}
......
Supports Markdown
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