X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2FGNUsocialPhotos%2Factions%2Fphotos.php;h=a180be8c12098295c3724287184dc8d5c218681a;hb=d4e76bc25b5bdcb47d8d267fcb7b9f3b9f0b9585;hp=3b8a0fd64f29e55093f13fd0e4102cca8f15107d;hpb=35e0832ec096530da6a1049d315b2d579ee9b9ae;p=quix0rs-gnu-social.git diff --git a/plugins/GNUsocialPhotos/actions/photos.php b/plugins/GNUsocialPhotos/actions/photos.php index 3b8a0fd64f..a180be8c12 100644 --- a/plugins/GNUsocialPhotos/actions/photos.php +++ b/plugins/GNUsocialPhotos/actions/photos.php @@ -38,7 +38,7 @@ class PhotosAction extends Action { var $user = null; - function prepare($args) + function prepare(array $args=array()) { parent::prepare($args); @@ -48,12 +48,12 @@ class PhotosAction extends Action if (common_valid_profile_tag($username) == 0) { $this->user = null; } else { - $this->user = Profile::staticGet('nickname', $username); + $this->user = Profile::getKV('nickname', $username); } return true; } - function handle($args) + function handle(array $args=array()) { parent::handle($args); $this->showPage(); @@ -82,7 +82,7 @@ class PhotosAction extends Action $this->element('option', array('value' => '120'), _("Medium")); $this->element('option', array('value' => '400'), _("Normal")); $this->elementEnd('select'); - } + } function showAlbums() { @@ -120,7 +120,7 @@ class PhotosAction extends Action function showAlbum($album_id) { - $album = GNUSocialPhotoAlbum::staticGet('album_id', $album_id); + $album = GNUsocialPhotoAlbum::getKV('album_id', $album_id); if (!$album) { return; }