mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 04:45:16 +02:00
Add new Module\Profile class
- Update reference to legacy module function profile_content
This commit is contained in:
parent
8db9b0987e
commit
0615c8438a
2 changed files with 355 additions and 3 deletions
|
@ -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 />";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue