Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* START Mirek's mod */
- $uriQuery = $app->input->getArray();
- $eSid = explode(':',$uriQuery['sid']);
- //print_r($eSid);
- if($eSid[0] > 7) {
- $db = JFactory::getDbo();
- $query = $db->getQuery(true);
- $query->select($db->quoteName(array('baseData')));
- $query->from($db->quoteName('#__sobipro_field_data'));
- $query->where($db->quoteName('sid') . ' = ' . $db->quote($eSid[0]));
- $query->where('(fid = 1 OR fid = 3)');
- $db->setQuery($query);
- $column = $db->loadColumn();
- $cColumn = array_values(array_unique($column));
- //print_r($cColumn);
- $doc->setTitle($cColumn[0].' - '.$cColumn[1]);
- require_once(JPATH_LIBRARIES.'/src/Document/Renderer/Html/HeadRenderer.php');
- $header_renderer = new JDocumentRendererHead($doc);
- $header_contents = $header_renderer->render(null);
- }
- /* END of Mirek's mod */
Add Comment
Please, Sign In to add comment