Use short form array syntax everywhere
This commit is contained in:
parent
4ee41c64a3
commit
27b60e003f
68 changed files with 869 additions and 869 deletions
|
@ -6,7 +6,7 @@
|
|||
* Description: Add "View Source" link to item context
|
||||
* Version: 1.0
|
||||
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
function viewsrc_install() {
|
||||
|
@ -49,7 +49,7 @@ function viewsrc_item_photo_menu(&$a,&$b) {
|
|||
} else
|
||||
$item_id = $b['item']['id'];
|
||||
|
||||
$b['menu'] = array_merge( array( t('View Source') => $a->get_baseurl() . '/viewsrc/'. $item_id), $b['menu']);
|
||||
$b['menu'] = array_merge( [ t('View Source') => $a->get_baseurl() . '/viewsrc/'. $item_id], $b['menu']);
|
||||
|
||||
//if((! local_user()) || (local_user() != $b['item']['uid']))
|
||||
// return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue