Use short form array syntax everywhere

This commit is contained in:
Hypolite Petovan 2018-01-15 08:15:33 -05:00
parent 4ee41c64a3
commit 27b60e003f
68 changed files with 869 additions and 869 deletions

View file

@ -185,7 +185,7 @@ function libertree_send(&$a,&$b) {
if($ltree_url && $ltree_api_token && $ltree_blog && $ltree_source) {
require_once('include/bb2diaspora.php');
$tag_arr = array();
$tag_arr = [];
$tags = '';
$x = preg_match_all('/\#\[(.*?)\](.*?)\[/',$b['tag'],$matches,PREG_SET_ORDER);
@ -223,11 +223,11 @@ function libertree_send(&$a,&$b) {
$body = "## ".html_entity_decode($title)."\n\n".$body;
$params = array(
$params = [
'text' => $body,
'source' => $ltree_source
// 'token' => $ltree_api_token
);
];
$result = post_url($ltree_blog,$params);
logger('libertree: ' . $result);