aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/include
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2008-10-15 04:51:03 +0000
committerrub <rub@piwigo.org>2008-10-15 04:51:03 +0000
commit691064d133858a31002100d070c33818a75a30bc (patch)
treeaf0cbe3478175497190ef3ec590dd1e2f8740a85 /template/yoga/include
parentc9d974c9a99cb1279e22cc627403ee56a36af209 (diff)
Resolved issue 0000893: 404 errors on template-common/lib/ui/i18n/ui.datepicker-en.js
Revert commit 2739 git-svn-id: http://piwigo.org/svn/trunk@2742 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--template/yoga/include/datepicker.inc.tpl14
1 files changed, 1 insertions, 13 deletions
diff --git a/template/yoga/include/datepicker.inc.tpl b/template/yoga/include/datepicker.inc.tpl
index ef6e158d8..871be0ea6 100644
--- a/template/yoga/include/datepicker.inc.tpl
+++ b/template/yoga/include/datepicker.inc.tpl
@@ -1,22 +1,10 @@
{* $Id$ *}
-{php}
- global $lang_info;
-
- $filename = get_root_url()."template-common/lib/ui/i18n/ui.datepicker-".$lang_info['code'].".js";
-
- $this->assign('exist_jquery_datepicker_lang', file_exists($filename));
- $this->assign('filename_jquery_datepicker_lang', $filename);
-{/php}
-
{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
{known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"}
{known_script id="jquery.ui.datepicker" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.datepicker.packed.js"}
+{known_script id="jquery.ui.datepicker-$lang_info.code" src=$ROOT_URL|@cat:"template-common/lib/ui/i18n/ui.datepicker-"|@cat:$lang_info.code|@cat:".js"}
{known_script id="datepicker.js" src=$ROOT_URL|@cat:"template-common/datepicker.js"}
-{if $exist_jquery_datepicker_lang}
-{known_script id="jquery.ui.datepicker-$lang_info.code" src=$filename_jquery_datepicker_lang}
-{/if}
-
{html_head}
<link rel="stylesheet" type="text/css" href="{$ROOT_URL}template-common/lib/ui/ui.datepicker.css">
{/html_head}