X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ffriendica.php;h=f2cb5c50b6fe1b55f9ad07053da15d1d2dcc03c0;hb=3ab837f3c783e14e2c8836e73c898041c47f2fd0;hp=8c3e4485862b5ec97b42e58f05b190b3a86e8f01;hpb=cfa68c52b9117616fa95a4639ad74e7d220d193d;p=friendica.git diff --git a/mod/friendica.php b/mod/friendica.php index 8c3e448586..f2cb5c50b6 100644 --- a/mod/friendica.php +++ b/mod/friendica.php @@ -17,12 +17,12 @@ function friendica_init(App $a) $sql_extra = ''; if (x($a->config, 'admin_nickname')) { - $sql_extra = sprintf(" AND `nickname` = '%s' ", dbesc(Config::get('config', 'admin_nickname'))); + $sql_extra = sprintf(" AND `nickname` = '%s' ", DBA::escape(Config::get('config', 'admin_nickname'))); } if (!empty(Config::get('config', 'admin_email'))) { $adminlist = explode(",", str_replace(" ", "", Config::get('config', 'admin_email'))); - $r = q("SELECT `username`, `nickname` FROM `user` WHERE `email` = '%s' $sql_extra", dbesc($adminlist[0])); + $r = q("SELECT `username`, `nickname` FROM `user` WHERE `email` = '%s' $sql_extra", DBA::escape($adminlist[0])); $admin = [ 'name' => $r[0]['username'], 'profile'=> System::baseUrl() . '/profile/' . $r[0]['nickname'], @@ -75,8 +75,9 @@ function friendica_content(App $a) { $o = '

Friendica

' . PHP_EOL; $o .= '

'; - $o .= L10n::t('This is Friendica, version') . ' ' . FRIENDICA_VERSION . ' '; - $o .= L10n::t('running at web location') . ' ' . System::baseUrl(); + $o .= L10n::t('This is Friendica, version %s that is running at the web location %s. The database version is %s, the post update version is %s.', + '' . FRIENDICA_VERSION . '', System::baseUrl(), '' . DB_UPDATE_VERSION . '', + '' . Config::get("system", "post_update_version") . ''); $o .= '

' . PHP_EOL; $o .= '

';