Add new Module\Profile class

- Update reference to legacy module function profile_content
This commit is contained in:
Hypolite Petovan 2019-01-30 08:07:20 -05:00
parent 8db9b0987e
commit 0615c8438a
2 changed files with 355 additions and 3 deletions

View file

@ -8,8 +8,7 @@
use Friendica\App;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
require_once 'mod/profile.php';
use Friendica\Module\Profile;
function update_profile_content(App $a) {
@ -29,7 +28,7 @@ function update_profile_content(App $a) {
* on the client side and then swap the image back.
*/
$text = profile_content($a, $profile_uid);
$text = Profile::content($profile_uid);
if (PConfig::get(local_user(), "system", "bandwidth_saver")) {
$replace = "<br />".L10n::t("[Embedded content - reload page to view]")."<br />";