RSS Feed/News $content = $thread?

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
23,698
Points
823

Reputation:

I have to change an existing add-on; i want to make it short and simple.
The easiest way is to inject a class where have a function like:

public function assertSomething($content)

I have to check now if content is $thread (could be $profilePost or $userProfile also)

I do this with

if ($content->node_id AND $content->thread_id)
{

is there another way?

Continue reading...
 
Status
Not open for further replies.
Top