]> git.mxchange.org Git - friendica.git/commitdiff
Fix capitalization of Contact::magicLinkById calls
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 22 Dec 2020 06:01:43 +0000 (01:01 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 22 Dec 2020 06:01:43 +0000 (01:01 -0500)
include/conversation.php
mod/photos.php
src/Model/Contact.php

index f0d121a3cae4952f9d20e96dcbfc6f0b4470c931..c87c8cb5881d5358d5dea777d48252c043b14641 100644 (file)
@@ -762,7 +762,7 @@ function conversation_fetch_comments($thread_items, bool $pinned, array $activit
                                }
 
                                if (($row['gravity'] == GRAVITY_PARENT) && !empty($row['causer-id'])) {
-                                       $row['reshared'] = DI::l10n()->t('%s reshared this.', '<a href="'. htmlentities(Contact::magicLinkbyId($row['causer-id'])) .'">' . htmlentities($name) . '</a>');
+                                       $row['reshared'] = DI::l10n()->t('%s reshared this.', '<a href="'. htmlentities(Contact::magicLinkById($row['causer-id'])) .'">' . htmlentities($name) . '</a>');
                                }
                                $row['direction'] = ['direction' => 3, 'title' => (empty($row['causer-id']) ? DI::l10n()->t('Reshared') : DI::l10n()->t('Reshared by %s', $name))];
                                break;
index 6e9a96ab2d9f892935cfb13f196f788f819f6a21..ac51d5273cbfc274d5d45ecb901da686f0ea8ed7 100644 (file)
@@ -1455,7 +1455,7 @@ function photos_content(App $a)
                                                continue;
                                        }
 
-                                       $profile_url = Contact::magicLinkbyId($item['author-id']);
+                                       $profile_url = Contact::magicLinkById($item['author-id']);
                                        if (strpos($profile_url, 'redir/') === 0) {
                                                $sparkle = ' sparkle';
                                        } else {
index 2908385f583e06430ebe775a754740c652bf9db6..b922265e24d7490fec71f6b0667316dd68943ba0 100644 (file)
@@ -2658,7 +2658,7 @@ class Contact
         * @throws HTTPException\InternalServerErrorException
         * @throws \ImagickException
         */
-       public static function magicLinkbyId($cid, $url = '')
+       public static function magicLinkById($cid, $url = '')
        {
                $contact = DBA::selectFirst('contact', ['id', 'network', 'url', 'uid'], ['id' => $cid]);