I am creating an API type plugin, which fetches activity stream from easysocial. But I got SEF URL in the activity stream, I want the NON-SEF URL in case SEF is on in Joomla configuration.
Please tell me how can I do this, programmatically.
I tried to override the Joomla config setting in my plugins, but it won't work as given below.
$config = JFactory::getConfig();
$sef = $config->set('sef', 0);