14,17c14,15
<  * Path to jQuery UI library.
<  *
<  * During site installation, JQUERY_UI_PATH is the absolute path to the
<  * jQuery UI library.  At all other times JQUERY_UI_PATH is relative, and
---
>  * During site installation, return the absolute path to the
>  * jQuery UI library.  At all other times the is relative, and
18a17
>  * @return string Path to jQuery UI library. 
20,24c19,26
< if (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE == 'install') {
<   define('JQUERY_UI_PATH', dirname(__FILE__) . '/jquery.ui');
< }
< else {
<   define('JQUERY_UI_PATH', drupal_get_path('module', 'jquery_ui') . '/jquery.ui');
---
> function jquery_ui_get_path() {
>   if (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE == 'install') {
>     $path = dirname(__FILE__);
>   }
>   else {
>     $path = drupal_get_path('module', 'jquery_ui');
>   }
>   return $path .'/jquery.ui';
39c41
<   $jquery_ui_path = JQUERY_UI_PATH . '/ui';
---
>   $jquery_ui_path = jquery_ui_get_path() . '/ui';
91,92c93,94
<   if (file_exists(JQUERY_UI_PATH . '/version.txt')) {
<     $version = file_get_contents(JQUERY_UI_PATH . '/version.txt');
---
>   if (file_exists(jquery_ui_get_path() . '/version.txt')) {
>     $version = file_get_contents(jquery_ui_get_path() . '/version.txt');
