2
0
Fork 0

fixed hook bug

This commit is contained in:
ivan 2020-04-07 23:29:33 +03:00
parent b2c971ce2a
commit afb298ddd9
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
/** /**
* Name: Link * Name: Link
* Description: Using short links on whole hub * Description: Using short links on whole hub
* Version: 0.69 * Version: 0.70
* Author: ivan zlax <@zlax@ussr.win> * Author: ivan zlax <@zlax@ussr.win>
* Maintainer: ivan zlax <@zlax@ussr.win> * Maintainer: ivan zlax <@zlax@ussr.win>
*/ */
@ -50,7 +50,7 @@ function link_plugin_admin_post(&$a) {
info( t('Settings updated.') . EOL ); info( t('Settings updated.') . EOL );
} }
function dropdown_link(&$extras) { function dropdown_link($a, &$extras) {
$arr = $extras; $arr = $extras;
$item_id = $extras['item']['item_id']; $item_id = $extras['item']['item_id'];
$arr['dropdown_extras'] .= '<a class="dropdown-item" href="'.z_root().'/link/'.$item_id.'" title="'.t('Link on Hub').'" class="u-url"><i class="generic-icons-nav fa fa-fw fa-link"></i>'.t('Link on Hub').'</a>'; $arr['dropdown_extras'] .= '<a class="dropdown-item" href="'.z_root().'/link/'.$item_id.'" title="'.t('Link on Hub').'" class="u-url"><i class="generic-icons-nav fa fa-fw fa-link"></i>'.t('Link on Hub').'</a>';