projects
/
mkdru-moved-to-drupal.org.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e797430
)
Read var once
author
Jakub Skoczen
<jakub@indexdata.dk>
Thu, 7 Apr 2011 08:39:03 +0000
(10:39 +0200)
committer
Jakub Skoczen
<jakub@indexdata.dk>
Thu, 7 Apr 2011 08:39:03 +0000
(10:39 +0200)
mkdru.module
patch
|
blob
|
history
diff --git
a/mkdru.module
b/mkdru.module
index
53f6633
..
ae66e65
100644
(file)
--- a/
mkdru.module
+++ b/
mkdru.module
@@
-24,12
+24,13
@@
function mkdru_ting_search_tab($keys) {
// D6 seems not to be able to handle external scripts
// assume one if path starts with http:
// assume alias if path starts with /
// D6 seems not to be able to handle external scripts
// assume one if path starts with http:
// assume alias if path starts with /
- if (preg_match('/^http:/') || preg_match('/^\//')) {
- drupal_add_js(variable_get('pz2_js_path', 'pazpar2/js')
- . '/pz2.js', 'module', 'footer', TRUE, TRUE, FALSE);
+ $pz2_js_path = variable_get('pz2_js_path', 'pazpar2/js');
+ if (preg_match('/^http:/', $pz2_js_path)
+ || preg_match('/^\//', $pz2_js_path)) {
+ drupal_add_js($pz2_js_path.'/pz2.js', 'module', 'footer',
+ TRUE, TRUE, FALSE);
} else {
} else {
- drupal_add_js($path.'/'.variable_get('pz2_js_path', 'pazpar2/js')
- . '/pz2.js', 'module', 'footer');
+ drupal_add_js($path.'/'.$pz2_js_path.'/pz2.js', 'module', 'footer');
}
drupal_add_js($path . '/jquery.ba-bbq.js', 'module', 'footer');
drupal_add_js($path . '/recipe.js', 'module', 'footer');
}
drupal_add_js($path . '/jquery.ba-bbq.js', 'module', 'footer');
drupal_add_js($path . '/recipe.js', 'module', 'footer');