1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-16 12:36:26 +02:00

Bugtracker #4064, no need to set firstDay option, should be handled by the language file (thanks marj)

This commit is contained in:
mcfly
2007-10-07 20:30:54 +00:00
parent 34fb119508
commit 3dc88047f9
3 changed files with 7 additions and 13 deletions

View File

@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_admin/download.php,v $ | $Source: /cvs_backup/e107_0.8/e107_admin/download.php,v $
| $Revision: 1.5 $ | $Revision: 1.6 $
| $Date: 2007-09-22 09:43:30 $ | $Date: 2007-10-07 20:30:54 $
| $Author: e107steved $ | $Author: mcfly_e107 $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
require_once("../class2.php"); require_once("../class2.php");
@ -898,7 +898,6 @@ class download {
if(!$download_datestamp){ if(!$download_datestamp){
$download_datestamp = time(); $download_datestamp = time();
} }
$cal_options['firstDay'] = 0;
$cal_options['showsTime'] = false; $cal_options['showsTime'] = false;
$cal_options['showOthers'] = false; $cal_options['showOthers'] = false;
$cal_options['weekNumbers'] = false; $cal_options['weekNumbers'] = false;

View File

@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_admin/newspost.php,v $ | $Source: /cvs_backup/e107_0.8/e107_admin/newspost.php,v $
| $Revision: 1.8 $ | $Revision: 1.9 $
| $Date: 2007-08-06 21:33:53 $ | $Date: 2007-10-07 20:30:54 $
| $Author: e107steved $ | $Author: mcfly_e107 $
+---------------------------------------------------------------+ +---------------------------------------------------------------+
*/ */
@ -585,7 +585,6 @@ class newspost {
$_startdate = ($_POST['news_start'] > 0) ? date("d/m/Y", $_POST['news_start']) : ""; $_startdate = ($_POST['news_start'] > 0) ? date("d/m/Y", $_POST['news_start']) : "";
$cal_options['firstDay'] = 0;
$cal_options['showsTime'] = false; $cal_options['showsTime'] = false;
$cal_options['showOthers'] = false; $cal_options['showOthers'] = false;
$cal_options['weekNumbers'] = false; $cal_options['weekNumbers'] = false;
@ -602,7 +601,6 @@ class newspost {
unset($cal_options); unset($cal_options);
unset($cal_attrib); unset($cal_attrib);
$cal_options['firstDay'] = 0;
$cal_options['showsTime'] = false; $cal_options['showsTime'] = false;
$cal_options['showOthers'] = false; $cal_options['showOthers'] = false;
$cal_options['weekNumbers'] = false; $cal_options['weekNumbers'] = false;
@ -629,7 +627,6 @@ class newspost {
$_update_datestamp = ($_POST['news_datestamp'] > 0 && !strpos($_POST['news_datestamp'],"/")) ? date("d/m/Y H:i:s", $_POST['news_datestamp']) : trim($_POST['news_datestamp']); $_update_datestamp = ($_POST['news_datestamp'] > 0 && !strpos($_POST['news_datestamp'],"/")) ? date("d/m/Y H:i:s", $_POST['news_datestamp']) : trim($_POST['news_datestamp']);
unset($cal_options); unset($cal_options);
unset($cal_attrib); unset($cal_attrib);
$cal_options['firstDay'] = 0;
$cal_options['showsTime'] = true; $cal_options['showsTime'] = true;
$cal_options['showOthers'] = true; $cal_options['showOthers'] = true;
$cal_options['weekNumbers'] = false; $cal_options['weekNumbers'] = false;

View File

@ -16,8 +16,7 @@ echo "
"; ";
echo $cal->make_input_field( echo $cal->make_input_field(
// calendar options go here; see the documentation and/or calendar-setup.js // calendar options go here; see the documentation and/or calendar-setup.js
array('firstDay' => 1, // show Monday first array('showsTime' => true,
'showsTime' => true,
'showOthers' => true, 'showOthers' => true,
'ifFormat' => '%Y/%m/%d %I:%M %P', 'ifFormat' => '%Y/%m/%d %I:%M %P',
'weekNumbers' => false, 'weekNumbers' => false,
@ -31,7 +30,6 @@ echo $cal->make_input_field(
echo "</td></tr><tr><td>"; echo "</td></tr><tr><td>";
unset($cal_options); unset($cal_options);
unset($cal_attrib); unset($cal_attrib);
$cal_options['firstDay'] = 0;
$cal_options['showsTime'] = false; $cal_options['showsTime'] = false;
$cal_options['showOthers'] = false; $cal_options['showOthers'] = false;
$cal_options['weekNumbers'] = true; $cal_options['weekNumbers'] = true;