X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=actions%2Fshowapplication.php;h=c10883942f5f19f5377494262fdf7a5832adf08b;hb=b53e1439969bfa2c0b551d8cc2fc8fe15652c62a;hp=acee1862f4cc88730a8f6b014eedd4da4d6fb32a;hpb=cc34bb48c7243f78e198ad4d8c1806d5fe886a81;p=quix0rs-gnu-social.git diff --git a/actions/showapplication.php b/actions/showapplication.php index acee1862f4..c10883942f 100644 --- a/actions/showapplication.php +++ b/actions/showapplication.php @@ -65,7 +65,7 @@ class ShowApplicationAction extends Action * * @return success flag */ - function prepare($args) + function prepare(array $args=array()) { parent::prepare($args); @@ -77,13 +77,11 @@ class ShowApplicationAction extends Action if (!common_logged_in()) { // TRANS: Client error displayed trying to display an OAuth application while not logged in. $this->clientError(_('You must be logged in to view an application.')); - return false; } if (empty($this->application)) { // TRANS: Client error displayed trying to display a non-existing OAuth application. $this->clientError(_('No such application.'), 404); - return false; } $cur = common_current_user(); @@ -91,7 +89,6 @@ class ShowApplicationAction extends Action if ($cur->id != $this->owner->id) { // TRANS: Client error displayed trying to display an OAuth application for which the logged in user is not the owner. $this->clientError(_('You are not the owner of this application.'), 401); - return false; } return true; @@ -104,7 +101,7 @@ class ShowApplicationAction extends Action * * @return void */ - function handle($args) + function handle(array $args=array()) { parent::handle($args); @@ -115,7 +112,6 @@ class ShowApplicationAction extends Action if (!$token || $token != common_session_token()) { // TRANS: Client error displayed when the session token does not match or is not given. $this->clientError(_('There was a problem with your session token.')); - return; } if ($this->arg('reset')) { @@ -151,20 +147,20 @@ class ShowApplicationAction extends Action $consumer = $this->application->getConsumer(); - $this->elementStart('div', 'entity_profile vcard'); + $this->elementStart('div', 'entity_profile h-card'); // TRANS: Header on the OAuth application page. $this->element('h2', null, _('Application profile')); if (!empty($this->application->icon)) { $this->element('img', array('src' => $this->application->icon, - 'class' => 'photo logo entity_depiction')); + 'class' => 'u-photo logo entity_depiction')); } $this->element('a', array('href' => $this->application->source_url, - 'class' => 'url fn entity_fn'), + 'class' => 'u-url p-name entity_fn'), $this->application->name); $this->element('a', array('href' => $this->application->homepage, - 'class' => 'url entity_org'), + 'class' => 'u-url entity_org'), $this->application->organization); $this->element('div',