Update function calls
update function calls to use profile class
This commit is contained in:
parent
4cfa46186a
commit
4fb2547df8
45 changed files with 360 additions and 294 deletions
|
|
@ -1,14 +1,17 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file mod/wallmessage.php
|
||||
*/
|
||||
use Friendica\App;
|
||||
use \Friendica\Core\System;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Model\Profile;
|
||||
|
||||
require_once('include/message.php');
|
||||
require_once 'include/message.php';
|
||||
|
||||
function wallmessage_post(App $a) {
|
||||
|
||||
$replyto = get_my_url();
|
||||
$replyto = Profile::getMyURL();
|
||||
if(! $replyto) {
|
||||
notice( t('Permission denied.') . EOL);
|
||||
return;
|
||||
|
|
@ -73,8 +76,8 @@ function wallmessage_post(App $a) {
|
|||
|
||||
function wallmessage_content(App $a) {
|
||||
|
||||
if(! get_my_url()) {
|
||||
notice( t('Permission denied.') . EOL);
|
||||
if (!Profile::getMyURL()) {
|
||||
notice(t('Permission denied.') . EOL);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue