Changeset 896:89a7eea61559
- Timestamp:
- 10/23/12 10:50:22 (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/index.php
r691 r896 81 81 $fav = unserialize($v['value']); 82 82 if (($fav['permissions'] == '*') || $core->auth->check($fav['permissions'],$core->blog->id)) { 83 $count++; 84 $title = ($fav['name'] == 'posts' ? sprintf($str_entries,$post_count) : 85 ($fav['name'] == 'comments' ? sprintf($str_comments,$comment_count) : $fav['title'])); 86 $__dashboard_icons[$fav['name']] = new ArrayObject(array(__($title),$fav['url'],$fav['large-icon'])); 87 88 # Let plugins set their own title for favorite on dashboard 89 $core->callBehavior('adminDashboardFavsIcon',$core,$fav['name'],$__dashboard_icons[$fav['name']]); 83 if (dc_valid_fav($fav['url'])) { 84 $count++; 85 $title = ($fav['name'] == 'posts' ? sprintf($str_entries,$post_count) : 86 ($fav['name'] == 'comments' ? sprintf($str_comments,$comment_count) : $fav['title'])); 87 $__dashboard_icons[$fav['name']] = new ArrayObject(array(__($title),$fav['url'],$fav['large-icon'])); 88 89 # Let plugins set their own title for favorite on dashboard 90 $core->callBehavior('adminDashboardFavsIcon',$core,$fav['name'],$__dashboard_icons[$fav['name']]); 91 } 90 92 } 91 93 } … … 96 98 $fav = unserialize($v['value']); 97 99 if (($fav['permissions'] == '*') || $core->auth->check($fav['permissions'],$core->blog->id)) { 98 $count++; 99 $title = ($fav['name'] == 'posts' ? sprintf($str_entries,$post_count) : 100 ($fav['name'] == 'comments' ? sprintf($str_comments,$comment_count) : $fav['title'])); 101 $__dashboard_icons[$fav['name']] = new ArrayObject(array(__($title),$fav['url'],$fav['large-icon'])); 102 103 # Let plugins set their own title for favorite on dashboard 104 $core->callBehavior('adminDashboardFavsIcon',$core,$fav['name'],$__dashboard_icons[$fav['name']]); 100 if (dc_valid_fav($fav['url'])) { 101 $count++; 102 $title = ($fav['name'] == 'posts' ? sprintf($str_entries,$post_count) : 103 ($fav['name'] == 'comments' ? sprintf($str_comments,$comment_count) : $fav['title'])); 104 $__dashboard_icons[$fav['name']] = new ArrayObject(array(__($title),$fav['url'],$fav['large-icon'])); 105 106 # Let plugins set their own title for favorite on dashboard 107 $core->callBehavior('adminDashboardFavsIcon',$core,$fav['name'],$__dashboard_icons[$fav['name']]); 108 } 105 109 } 106 110 }
Note: See TracChangeset
for help on using the changeset viewer.