Changeset 852:969647a6c35e for inc/admin
- Timestamp:
- 07/31/12 15:15:32 (13 years ago)
- Branch:
- sexy
- Location:
- inc/admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.dc.page.php
r851 r852 414 414 self::jsVar('dotclear.msg.confirm_delete_user', 415 415 __('Are you sure you want to delete selected users (%s)?')). 416 self::jsVar('dotclear.msg.confirm_delete_media',417 __('Are you sure you want to remove media "%s"?')).418 416 self::jsVar('dotclear.msg.confirm_extract_current', 419 417 __('Are you sure you want to extract archive in current directory?')). … … 623 621 "jsToolBar.prototype.elements.img.src_prompt = '".html::escapeJS(__('URL?'))."'; ". 624 622 625 "jsToolBar.prototype.elements.img_select.title = '".html::escapeJS(__('Media chooser'))."'; ".626 623 "jsToolBar.prototype.elements.post_link.title = '".html::escapeJS(__('Link to an entry'))."'; "; 627 624 628 if (!$GLOBALS['core']->auth->check('media,media_admin',$GLOBALS['core']->blog->id)) {629 $res .= "jsToolBar.prototype.elements.img_select.disabled = true;\n";630 }631 625 632 626 $res .= -
inc/admin/lib.pager.php
r851 r852 100 100 } 101 101 102 $attach = '';103 $nb_media = $this->rs->countMedia();104 if ($nb_media > 0) {105 $attach_str = $nb_media == 1 ? __('%d attachment') : __('%d attachments');106 $attach = sprintf($img,sprintf($attach_str,$nb_media),'attach.png');107 }108 102 109 103 $res = '<tr class="line'.($this->rs->post_status != 1 ? ' offline' : '').'"'. … … 117 111 '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$this->rs->post_dt).'</td>'. 118 112 '<td class="nowrap">'.$this->rs->user_id.'</td>'. 119 '<td class="nowrap status">'.$img_status.' '.$selected.' '.$protected.' '.$attach.'</td>'.113 '<td class="nowrap status">'.$img_status.' '.$selected.' '.$protected.'</td>'. 120 114 '</tr>'; 121 115 … … 196 190 } 197 191 198 $attach = '';199 $nb_media = $this->rs->countMedia();200 if ($nb_media > 0) {201 $attach_str = $nb_media == 1 ? __('%d attachment') : __('%d attachments');202 $attach = sprintf($img,sprintf($attach_str,$nb_media),'attach.png');203 }204 192 205 193 $res = '<tr class="line'.($this->rs->post_status != 1 ? ' offline' : '').'"'. … … 212 200 '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$this->rs->post_dt).'</td>'. 213 201 '<td class="nowrap">'.$this->rs->user_id.'</td>'. 214 '<td class="nowrap status">'.$img_status.' '.$selected.' '.$protected.' '.$attach.'</td>'.202 '<td class="nowrap status">'.$img_status.' '.$selected.' '.$protected.'</td>'. 215 203 '</tr>'; 216 204 -
inc/admin/prepend.php
r851 r852 146 146 { 147 147 $_SESSION['sess_blog_id'] = $_REQUEST['switchblog']; 148 if (isset($_SESSION['media_manager_dir'])) { 149 unset($_SESSION['media_manager_dir']); 150 } 151 if (isset($_SESSION['media_manager_page'])) { 152 unset($_SESSION['media_manager_page']); 153 } 154 148 155 149 # Removing switchblog from URL 156 150 $redir = $_SERVER['REQUEST_URI']; … … 238 232 'images/menu/search.png','images/menu/search-b.png', 239 233 'usage,contentadmin',null,null)); 240 $_fav['media'] = new ArrayObject(array('media','Media manager','media.php',241 'images/menu/media.png','images/menu/media-b.png',242 'media,media_admin',null,null));243 234 $_fav['blog_pref'] = new ArrayObject(array('blog_pref','Blog settings','blog_pref.php', 244 235 'images/menu/blog-pref.png','images/menu/blog-pref-b.png', … … 296 287 preg_match('/blog_pref.php(\?.*)?$/',$_SERVER['REQUEST_URI']), 297 288 $core->auth->check('admin',$core->blog->id)); 298 $_menu['Blog']->prependItem(__('Media manager'),'media.php','images/menu/media.png',299 preg_match('/media(_item)?.php(\?.*)?$/',$_SERVER['REQUEST_URI']),300 $core->auth->check('media,media_admin',$core->blog->id));301 289 $_menu['Blog']->prependItem(__('Search'),'search.php','images/menu/search.png', 302 290 preg_match('/search.php(\?.*)?$/',$_SERVER['REQUEST_URI']),
Note: See TracChangeset
for help on using the changeset viewer.