1
0
Fork 0

Use short form array syntax everywhere

- Add short form array syntax to po2php.php generation
This commit is contained in:
Hypolite Petovan 2018-01-15 08:05:12 -05:00
commit e36f2bb1fb
212 changed files with 5160 additions and 5160 deletions

View file

@ -34,17 +34,17 @@ function share_init(App $a) {
}
function share_header($author, $profile, $avatar, $guid, $posted, $link) {
$header = "[share author='".str_replace(array("'", "[", "]"), array("'", "[", "]"), $author).
"' profile='".str_replace(array("'", "[", "]"), array("'", "[", "]"), $profile).
"' avatar='".str_replace(array("'", "[", "]"), array("'", "[", "]"), $avatar);
$header = "[share author='".str_replace(["'", "[", "]"], ["'", "[", "]"], $author).
"' profile='".str_replace(["'", "[", "]"], ["'", "[", "]"], $profile).
"' avatar='".str_replace(["'", "[", "]"], ["'", "[", "]"], $avatar);
if ($guid) {
$header .= "' guid='".str_replace(array("'", "[", "]"), array("'", "[", "]"), $guid);
$header .= "' guid='".str_replace(["'", "[", "]"], ["'", "[", "]"], $guid);
}
if ($posted) {
$header .= "' posted='".str_replace(array("'", "[", "]"), array("'", "[", "]"), $posted);
$header .= "' posted='".str_replace(["'", "[", "]"], ["'", "[", "]"], $posted);
}
$header .= "' link='".str_replace(array("'", "[", "]"), array("'", "[", "]"), $link)."']";
$header .= "' link='".str_replace(["'", "[", "]"], ["'", "[", "]"], $link)."']";
return $header;
}