From 57c9a13e1f0ed4e8492467bda817b3385be33225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Fri, 8 Jun 2007 12:51:59 +0000 Subject: #118026 by kkaefer with fixes from myself: JavaScript translation support and script.js as a default theme JS file to use, if found --- modules/system/system.module | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/system/system.module') diff --git a/modules/system/system.module b/modules/system/system.module index bf1e7b93b..2ba242e22 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -615,7 +615,6 @@ function system_clean_url_settings() { if (!variable_get('clean_url', 0)) { if (strpos(request_uri(), '?q=') !== FALSE) { - drupal_add_js(array('cleanURL' => array('success' => t('Your server has been successfully tested to support this feature.'), 'failure' => t('Your system configuration does not currently support this feature. The handbook page on Clean URLs has additional troubleshooting information.'), 'testing' => t('Testing clean URLs...'))), 'setting'); drupal_add_js(drupal_get_path('module', 'system') .'/system.js', 'module'); drupal_add_js(' // Global Killswitch @@ -1060,6 +1059,7 @@ function system_theme_default() { 'slogan' ), 'stylesheet' => 'style.css', + 'script' => 'script.js', 'screenshot' => 'screenshot.png', ); } @@ -1113,6 +1113,10 @@ function system_theme_data() { if (!empty($themes[$key]->info['stylesheet'])) { $themes[$key]->info['stylesheet'] = dirname($themes[$key]->filename) .'/'. $themes[$key]->info['stylesheet']; } + // Give the script proper path information. + if (!empty($themes[$key]->info['script'])) { + $themes[$key]->info['script'] = dirname($themes[$key]->filename) .'/'. $themes[$key]->info['script']; + } // Give the screenshot proper path information. if (!empty($themes[$key]->info['screenshot'])) { $themes[$key]->info['screenshot'] = dirname($themes[$key]->filename) .'/'. $themes[$key]->info['screenshot']; -- cgit v1.2.3