From a30692d0e8b4c2fb551b3742f468d5ad0a94e9e9 Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 25 Jun 2013 15:50:53 -0300 Subject: Fixing library_path --- timelinejs.module | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'timelinejs.module') diff --git a/timelinejs.module b/timelinejs.module index 9fd4791..fbb2caf 100644 --- a/timelinejs.module +++ b/timelinejs.module @@ -197,11 +197,12 @@ function timelinejs($nid, $width = '960px', $height = '500px') { $css = (file_exists($theme_path .'/timeline.css')) ? '/'. $theme_path .'/timeline.css' : '/'. $library_path .'/compiled/css/timeline.css'; return theme('timelinejs', array( - 'width' => $width, - 'height' => $height, - 'source' => $base_url .'/timelinejs/json/'. (int) $nid, - 'css' => $css, - 'lang' => $library_path .'/compiled/js/locale/'. $language->language .'.js', + 'width' => $width, + 'height' => $height, + 'source' => $base_url .'/timelinejs/json/'. (int) $nid, + 'css' => $css, + 'lang' => '/'. $library_path .'/compiled/js/locale/'. $language->language .'.js', + 'library_path' => $library_path, )); } -- cgit v1.2.3