X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FProfile.php;h=332d51e2037ea92f542c42cb9d24c8beb6804ce1;hb=bb55784e902388f12ae9a0beddf283b48f19531e;hp=239c368ca19fb0451369921ca0445594f440f91c;hpb=af4ee1d490b86e5d50cfcb62db3b886c9305da8c;p=quix0rs-gnu-social.git diff --git a/classes/Profile.php b/classes/Profile.php index 239c368ca1..332d51e203 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -408,31 +408,6 @@ class Profile extends Memcached_DataObject return new ArrayWrapper($profiles); } - function getConnectedApps($offset = 0, $limit = null) - { - $qry = - 'SELECT u.* ' . - 'FROM oauth_application_user u, oauth_application a ' . - 'WHERE u.profile_id = %d ' . - 'AND a.id = u.application_id ' . - 'AND u.access_type > 0 ' . - 'ORDER BY u.created DESC '; - - if ($offset > 0) { - if (common_config('db','type') == 'pgsql') { - $qry .= ' LIMIT ' . $limit . ' OFFSET ' . $offset; - } else { - $qry .= ' LIMIT ' . $offset . ', ' . $limit; - } - } - - $apps = new Oauth_application_user(); - - $cnt = $apps->query(sprintf($qry, $this->id)); - - return $apps; - } - function subscriptionCount() { $c = common_memcache();