summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2007-07-03 07:36:17 +0000
committerLester Caine <lester@lsces.co.uk>2007-07-03 07:36:17 +0000
commita503c1e2365fa03c9267aa6da7be19a79c65b8a6 (patch)
tree677bfffc3e70b66192764ecb058477aba5adb0f1
parent04b7320399dae6a2b4889ac18992dea6acd565f0 (diff)
downloadcalendar-a503c1e2365fa03c9267aa6da7be19a79c65b8a6.tar.gz
calendar-a503c1e2365fa03c9267aa6da7be19a79c65b8a6.tar.bz2
calendar-a503c1e2365fa03c9267aa6da7be19a79c65b8a6.zip
Keep contentTypes in alphabetical order
-rw-r--r--admin/admin_calendar_inc.php1
-rw-r--r--index.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/admin/admin_calendar_inc.php b/admin/admin_calendar_inc.php
index 50155e0..574ffba 100644
--- a/admin/admin_calendar_inc.php
+++ b/admin/admin_calendar_inc.php
@@ -35,6 +35,7 @@ foreach( $gLibertySystem->mContentTypes as $cType ) {
$calendarChecks[] = $option;
$calendarTypeDefaults[$option] = $cType['content_description'];
}
+asort($calendarTypeDefaults);
$gBitSmarty->assign('calendarTypeDefaults', $calendarTypeDefaults);
// this function only exists if it's been included by the index.php page. if
diff --git a/index.php b/index.php
index 61c469e..14e976f 100644
--- a/index.php
+++ b/index.php
@@ -1,6 +1,6 @@
<?php
-// $Header: /cvsroot/bitweaver/_bit_calendar/index.php,v 1.51 2007/04/09 01:31:35 jetskijoe Exp $
+// $Header: /cvsroot/bitweaver/_bit_calendar/index.php,v 1.52 2007/07/03 07:36:17 lsces Exp $
// Copyright( c ) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
@@ -31,6 +31,7 @@ if( !empty( $_REQUEST["content_type_guid"] ) ) {
foreach( $gLibertySystem->mContentTypes as $cType ) {
$contentTypes[$cType['content_type_guid']] = $cType['content_description'];
}
+asort($contentTypes);
$gBitSmarty->assign( 'calContentTypes', $contentTypes );
// now, lets get the ball rolling!