Changeset 3340:30cec05f4e63 for admin
- Timestamp:
- 09/09/16 13:30:35 (9 years ago)
- Branch:
- default
- Location:
- admin
- Files:
-
- 4 edited
-
categories.php (modified) (1 diff)
-
media.php (modified) (2 diffs)
-
post.php (modified) (1 diff)
-
preferences.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
admin/categories.php
r3210 r3340 47 47 $mov_cat = (int) $_POST['mov_cat'][$cat_id]; 48 48 49 $mov_cat = $mov_cat ? $mov_cat: null;49 $mov_cat = $mov_cat ?: null; 50 50 if ($mov_cat !== null) { 51 51 $c = $core->blog->getCategory($mov_cat); -
admin/media.php
r3325 r3340 35 35 36 36 $page = !empty($_GET['page']) ? max(1,(integer) $_GET['page']) : 1; 37 $nb_per_page = ((integer) $core->auth->user_prefs->interface->media_by_page ? (integer) $core->auth->user_prefs->interface->media_by_page: 30);37 $nb_per_page = ((integer) $core->auth->user_prefs->interface->media_by_page ?: 30); 38 38 39 39 # We are on home not comming from media manager … … 161 161 $zip->addDirectory($core->media->root.'/'.$d,'',true); 162 162 163 header('Content-Disposition: attachment;filename='.date('Y-m-d').'-'.$core->blog->id.'-'.($d ? $d: 'media').'.zip');163 header('Content-Disposition: attachment;filename='.date('Y-m-d').'-'.$core->blog->id.'-'.($d ?: 'media').'.zip'); 164 164 header('Content-Type: application/x-zip'); 165 165 $zip->write(); -
admin/post.php
r3209 r3340 272 272 273 273 $cur->post_title = $post_title; 274 $cur->cat_id = ($cat_id ? $cat_id: null);274 $cur->cat_id = ($cat_id ?: null); 275 275 $cur->post_dt = $post_dt ? date('Y-m-d H:i:00',strtotime($post_dt)) : ''; 276 276 $cur->post_format = $post_format; -
admin/preferences.php
r3333 r3340 47 47 $user_ui_iconset = @$core->auth->user_prefs->interface->iconset; 48 48 $user_ui_nofavmenu = $core->auth->user_prefs->interface->nofavmenu; 49 $user_ui_media_by_page = ($core->auth->user_prefs->interface->media_by_page ? $core->auth->user_prefs->interface->media_by_page: 30);49 $user_ui_media_by_page = ($core->auth->user_prefs->interface->media_by_page ?: 30); 50 50 $user_ui_media_nb_last_dirs = $core->auth->user_prefs->interface->media_nb_last_dirs; 51 51
Note: See TracChangeset
for help on using the changeset viewer.
