function shGetCustomMetaData($nonSef) { static $_tags; if (is_null($_tags)) { $db = ShlDbHelper::getDb(); $_tags = new Sh404sefTableMetas($db); // now read manually setup tags try { $data = ShlDbHelper::selectObject('#__sh404sef_metas', '*', array('newurl' => $nonSef)); } catch (Exception $e) { ShlSystem_Log::error('sh404sef', '%s::%s::%d: %s', __CLASS__, __METHOD__, __LINE__, $e->getMessage()); } if (!empty($data)) { $_tags->bind($data); } } return $_tags; }
function shGetCustomMetaData($nonSef) { static $_tags; if (is_null($_tags)) { $_tags = new Sh404sefTableMetas(JFactory::getDbo()); // now read manually setup tags try { $data = Sh404sefHelperDb::selectObject('#__sh404sef_metas', '*', array('newurl' => $nonSef)); } catch (Sh404sefExceptionDefault $e) { } if (!empty($data)) { $_tags->bind($data); } } return $_tags; }