summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-06-08 12:51:59 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-06-08 12:51:59 +0000
commit57c9a13e1f0ed4e8492467bda817b3385be33225 (patch)
treecad6dffe20ee380f923a1a78b38248420393f332 /modules/system/system.module
parent9e0da3dc7c39786bf6d972e07819fe2880cdeaa3 (diff)
downloadbrdo-57c9a13e1f0ed4e8492467bda817b3385be33225.tar.gz
brdo-57c9a13e1f0ed4e8492467bda817b3385be33225.tar.bz2
#118026 by kkaefer with fixes from myself: JavaScript translation support and script.js as a default theme JS file to use, if found
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module6
1 files changed, 5 insertions, 1 deletions
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 <a href="http://drupal.org/node/15365">handbook page on Clean URLs</a> 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'];