Changeset 2295:f20eb5bb555b for admin/install
- Timestamp:
- 10/06/13 14:35:08 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
-
admin/install/index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
admin/install/index.php
r2247 r2295 146 146 $blog_settings->system->put('public_url',$root_url.'/public'); 147 147 $blog_settings->system->put('themes_url',$root_url.'/themes'); 148 149 # date and time formats 148 150 $formatDate = __('%A, %B %e %Y'); 151 $date_formats = array('%Y-%m-%d','%m/%d/%Y','%d/%m/%Y','%Y/%m/%d','%d.%m.%Y','%b %e %Y','%e %b %Y','%Y %b %e', 152 '%a, %Y-%m-%d','%a, %m/%d/%Y','%a, %d/%m/%Y','%a, %Y/%m/%d','%B %e, %Y','%e %B, %Y','%Y, %B %e','%e. %B %Y', 153 '%A, %B %e, %Y','%A, %e %B, %Y','%A, %Y, %B %e','%A, %Y, %B %e','%A, %e. %B %Y'); 154 $time_formats = array('%H:%M','%I:%M','%l:%M','%Hh%M','%Ih%M','%lh%M'); 149 155 if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { 150 $formatDate = preg_replace('#(?<!%)((?:%%)*)%e#', '\1%#d', $formatDate); 151 } 152 $blog_settings->system->put('date_format', $formatDate); 153 156 $formatDate = preg_replace('#(?<!%)((?:%%)*)%e#','\1%#d',$formatDate); 157 $date_formats = array_map(create_function('$f', 158 'return str_replace(\'%e\',\'%#d\',$f);' 159 ),$date_formats); 160 } 161 $blog_settings->system->put('date_format',$formatDate); 162 $blog_settings->system->put('date_formats',serialize($date_formats),'string','Date formats examples',true); 163 $blog_settings->system->put('time_formats',serialize($time_formats),'string','Time formats examples',true); 164 154 165 # Add Dotclear version 155 166 $cur = $core->con->openCursor($core->prefix.'version');
Note: See TracChangeset
for help on using the changeset viewer.
