Skip to content

Commit

Permalink
v 0.1.6 - fixed tidypics album creation fatal error
Browse files Browse the repository at this point in the history
  • Loading branch information
ura soul committed Jan 16, 2014
1 parent 16ac2a7 commit 7fa1967
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
29 changes: 20 additions & 9 deletions lib/interconnected.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,17 @@ function get_sharing_data_for_current_page()

$site_logo = elgg_get_plugin_setting('site_logo', 'interconnected');
if ($site_logo == '')
$site_logo = $current_user->getIconURL($size);
{
if (elgg_is_logged_in())
$site_logo = $current_user->getIconURL($size);
}

$full_site_logo = elgg_get_plugin_setting('full_site_logo', 'interconnected');
if ($full_site_logo == '')
{
if (elgg_is_logged_in())
$full_site_logo = $current_user->getIconURL($full_size);

}
$default_title = elgg_get_plugin_setting('default_title', 'interconnected');
if ($default_title == '')
$default_title = $sitename;
Expand Down Expand Up @@ -158,9 +163,15 @@ function get_sharing_data_for_current_page()
if ($subtype=='album')
{
$cover_guid = $entity->getCoverImageGuid();
$cover_entity = get_entity($cover_guid);
$icon_url = $cover_entity->getIconURL($size);
$full_icon_url = $cover_entity->getIconURL($full_size);
if ($cover_guid)
{
$cover_entity = get_entity($cover_guid);
if ($cover_entity)
{
$icon_url = $cover_entity->getIconURL($size);
$full_icon_url = $cover_entity->getIconURL($full_size);
}
}
}
else
{
Expand Down Expand Up @@ -371,13 +382,13 @@ function get_sharing_data_for_current_page()

if ($author)
$content['author'] = $author;
else
$content['author'] = $sitename;
else
$content['author'] = $sitename;

if ($type)
$content['type'] = $type;
else
$content['type'] = 'website';
else
$content['type'] = 'website';

$content['keywords'] = $tags;
$content['url'] = $url;
Expand Down
2 changes: 1 addition & 1 deletion manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin_manifest xmlns="http://www.elgg.org/plugin_manifest/1.8">
<name>interconnected</name>
<author>ura soul</author>
<version>0.1.5</version>
<version>0.1.6</version>
<description>for social sharing and seo without bloatage</description>
<website>https://www.infiniteeureka.com</website>
<license>GNU Public License version 2</license>
Expand Down

0 comments on commit 7fa1967

Please sign in to comment.