use Friendica\Core\Config;
use Friendica\Core\PConfig;
+use Friendica\Object\Photo;
-require_once('mod/share.php');
-require_once('mod/parse_url.php');
-require_once('include/text.php');
+require_once 'mod/share.php';
+require_once 'mod/parse_url.php';
+require_once 'include/text.php';
function fromgplus_install() {
register_hook('connector_settings', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings');
PConfig::set(local_user(),'fromgplus', 'keywords', $keywords);
if (!$enable)
- del_pconfig(local_user(),'fromgplus','lastdate');
+ PConfig::delete(local_user(),'fromgplus','lastdate');
info( t('Google+ Import Settings saved.') . EOL);
}
}
if ($cleaned["full"] != "")
- $infoFull = get_photo_info($cleaned["full"]);
+ $infoFull = Photo::getInfoFromURL($cleaned["full"]);
else
$infoFull = array("0" => 0, "1" => 0);
if ($cleaned["preview"] != "")
- $infoPreview = get_photo_info($cleaned["preview"]);
+ $infoPreview = Photo::getInfoFromURL($cleaned["preview"]);
else
$infoFull = array("0" => 0, "1" => 0);