Remove unused parameter in can_write_wall()

This commit is contained in:
Hypolite Petovan 2018-01-03 21:05:55 -05:00
parent 659d637b5a
commit 722782d553
7 changed files with 12 additions and 13 deletions

View file

@ -60,11 +60,11 @@ class Thread extends BaseObject
break;
case 'profile':
$this->profile_owner = $a->profile['profile_uid'];
$this->writable = can_write_wall($a, $this->profile_owner);
$this->writable = can_write_wall($this->profile_owner);
break;
case 'display':
$this->profile_owner = $a->profile['uid'];
$this->writable = can_write_wall($a, $this->profile_owner) || $writable;
$this->writable = can_write_wall($this->profile_owner) || $writable;
break;
case 'community':
$this->profile_owner = local_user();