X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fapplicationlist.php;h=ab51a73096c50c637dd6cc078f1c5fddde2a5daa;hb=refs%2Fheads%2Fupstream-changes%2Fgoogle-analytics-removal;hp=b2cc572e3ee145f31f1db3356216b1e8ebf07464;hpb=673bef2fdae9db750f4daf5bfe7d639eb2ec2acc;p=quix0rs-gnu-social.git diff --git a/lib/applicationlist.php b/lib/applicationlist.php index b2cc572e3e..ab51a73096 100644 --- a/lib/applicationlist.php +++ b/lib/applicationlist.php @@ -46,16 +46,12 @@ class ApplicationList extends Widget /** Owner of this list */ var $owner = null; - /** Action object using us. */ - var $action = null; - - function __construct($application, $owner=null, $action=null) + function __construct($application, Profile $owner, Action $out=null) { - parent::__construct($action); + parent::__construct($out); $this->application = $application; $this->owner = $owner; - $this->action = $action; } function show() @@ -69,7 +65,7 @@ class ApplicationList extends Widget if($cnt > APPS_PER_PAGE) { break; } - $this->showapplication(); + $this->showApplication(); } $this->out->elementEnd('ul'); @@ -79,8 +75,6 @@ class ApplicationList extends Widget function showApplication() { - $user = common_current_user(); - $this->out->elementStart('li', array('class' => 'application h-entry', 'id' => 'oauthclient-' . $this->application->id));