X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FApp.php;h=9b6f6a5a296eea138749891e8b93c320caeeeee0;hb=1d8bb726d621662f359930b13b382f1aef155172;hp=ceb11dd797ecdb567691e59208d82343d54626da;hpb=d5a473abdaa019b6b3747ef6ee15c6202cec839b;p=friendica.git diff --git a/src/App.php b/src/App.php index ceb11dd797..9b6f6a5a29 100644 --- a/src/App.php +++ b/src/App.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica; use Exception; @@ -25,9 +42,6 @@ use Friendica\Util\Strings; use Psr\Log\LoggerInterface; /** - * - * class: App - * * Our main application structure for the life of this page. * * Primarily deals with the URL that got us here @@ -242,27 +256,6 @@ class App $this->baseURL->get(); } - /** - * Generates the site's default sender email address - * - * @return string - * @throws HTTPException\InternalServerErrorException - */ - public function getSenderEmailAddress() - { - $sender_email = $this->config->get('config', 'sender_email'); - if (empty($sender_email)) { - $hostname = $this->baseURL->getHostname(); - if (strpos($hostname, ':')) { - $hostname = substr($hostname, 0, strpos($hostname, ':')); - } - - $sender_email = 'noreply@' . $hostname; - } - - return $sender_email; - } - /** * Returns the current theme name. May be overriden by the mobile theme name. *