mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-16 15:09:55 -04:00
Use $theme->script() method to render module javascript files
This commit is contained in:
@@ -20,11 +20,9 @@
|
||||
class organize_theme {
|
||||
static function head($theme) {
|
||||
// @tdo remove the addition css and organize.js (just here to test)
|
||||
$script[] = html::script("modules/organize/js/organize_init.js");
|
||||
$script[] = html::script("modules/organize/js/organize.js");
|
||||
$script[] = "<link rel=\"stylesheet\" type=\"text/css\" href=\"" .
|
||||
$theme->script("modules/organize/js/organize_init.js");
|
||||
$theme->script("modules/organize/js/organize.js");
|
||||
return "<link rel=\"stylesheet\" type=\"text/css\" href=\"" .
|
||||
url::file("modules/organize/css/organize.css") . "\" />";
|
||||
return implode("\n", $script);
|
||||
//return html::script("modules/organize/js/organize_init.js");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user