mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-19 06:47:03 +00:00
Fixed parser errors
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
49422583cc
commit
ac46a91a2c
3 changed files with 3 additions and 5 deletions
|
@ -40,7 +40,6 @@ function fromgplus_uninstall() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function fromgplus_addon_settings(App $a, $s) {
|
function fromgplus_addon_settings(App $a, $s) {
|
||||||
|
|
||||||
if(! local_user())
|
if(! local_user())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -302,7 +301,7 @@ function fromgplus_cleanupgoogleproxy($fullImage, $image) {
|
||||||
$cleaned["full"] = $fullImage;
|
$cleaned["full"] = $fullImage;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($cleaned["full"] == "" && exif_imagetype($image) != 0)
|
if ($cleaned["full"] == "" && exif_imagetype($image) != 0) {
|
||||||
$cleaned["full"] = $image;
|
$cleaned["full"] = $image;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,12 +27,11 @@ function googlemaps_uninstall()
|
||||||
|
|
||||||
function googlemaps_location(App $a, array &$item)
|
function googlemaps_location(App $a, array &$item)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (! (strlen($item['location']) || strlen($item['coord']))) {
|
if (! (strlen($item['location']) || strlen($item['coord']))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($item['coord']) {
|
if (isset($item['coord'])) {
|
||||||
$target = "http://maps.google.com/?q=".urlencode($item['coord']);
|
$target = "http://maps.google.com/?q=".urlencode($item['coord']);
|
||||||
} else {
|
} else {
|
||||||
$target = "http://maps.google.com/?q=".urlencode($item['location']);
|
$target = "http://maps.google.com/?q=".urlencode($item['location']);
|
||||||
|
|
|
@ -29,7 +29,7 @@ function smileybutton_uninstall() {
|
||||||
function show_button(App $a, &$b) {
|
function show_button(App $a, &$b) {
|
||||||
// Disable if theme is quattro
|
// Disable if theme is quattro
|
||||||
// TODO add style for quattro
|
// TODO add style for quattro
|
||||||
if ($a->getCurrentTheme() == 'quattro')
|
if ($a->getCurrentTheme() == 'quattro') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue