addItem(__('Medias sharing'), $core->adminurl->get('admin.plugin.filesAlias'), dcPage::getPF('filesAlias/icon.png'), preg_match('/plugin.php(.*)$/',$_SERVER['REQUEST_URI']) && !empty($_REQUEST['p']) && $_REQUEST['p']=='filesAlias', $core->auth->check('contentadmin',$core->blog->id)); $core->addBehavior('adminDashboardFavorites','filesAliasDashboardFavorites'); function filesAliasDashboardFavorites($core,$favs) { $favs->register('filesAlias', array( 'title' => __('Medias sharing'), 'url' => $core->adminurl->get('admin.plugin.filesAlias'), 'small-icon' => dcPage::getPF('filesAlias/icon.png'), 'large-icon' => dcPage::getPF('filesAlias/icon_b.png'), 'permissions' => 'usage,contentadmin' )); }