From: <mo...@us...> - 2004-04-26 12:02:32
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26409 Modified Files: tiki-jscalendar.php Log Message: fixed the jscalendar in french Index: tiki-jscalendar.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-jscalendar.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- tiki-jscalendar.php 26 Apr 2004 11:57:17 -0000 1.1 +++ tiki-jscalendar.php 26 Apr 2004 12:02:21 -0000 1.2 @@ -1,7 +1,12 @@ <?php +//this script may only be included - so its better to die if called directly. +if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) { + header("location: index.php"); +} + if (isset($feature_jscalendar) and $feature_jscalendar == 'y') { $jslang['en'] = "en"; - $jslang['fr'] = "fr"; + $jslang['fr'] = "fr-utf8"; $smarty->assign('uses_jscalendar', 'y'); $smarty->assign('feature_jscalendar', 'y'); if (isset($language) and isset($jslang["$language"])) { |