mirror of
https://github.com/friendica/friendica
synced 2025-04-27 07:10:12 +00:00
Move hook-related methods from Core\Addon to Core\Hook
This commit is contained in:
parent
0aa7671119
commit
ca9cad3491
9 changed files with 153 additions and 242 deletions
|
@ -771,7 +771,7 @@ class Post extends BaseObject
|
|||
* Hmmm, code depending on the presence of a particular addon?
|
||||
* This should be better if done by a hook
|
||||
*/
|
||||
if (in_array('qcomment', $a->addons)) {
|
||||
if (Addon::isEnabled('qcomment')) {
|
||||
$qc = ((local_user()) ? PConfig::get(local_user(), 'qcomment', 'words') : null);
|
||||
$qcomment = (($qc) ? explode("\n", $qc) : null);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue