english/administrator/components/com_redirect/helpers/redirect.php
/**
	 * Determines if the plugin for Redirect to work is enabled.
	 *
	 * @return	boolean
	 */
Determines if the plugin for Redirect to work is enabled.
@return      boolean
Determines if the plugin for Redirect to work is enabled . @return boolean
public static function isEnabled()
	{
		$db = JFactory::getDbo();
		$db->setQuery(
			'SELECT enabled' .
			' FROM #__extensions' .
			' WHERE folder = '.$db->quote('system').
			'  AND element = '.$db->quote('redirect')
		);
		$result = (boolean) $db->loadResult();
		if ($error = $db->getErrorMsg()) {
			JError::raiseWarning(500, $error);
		}
		return $result;
	}
public static function isEnabled ( ) { $ db = JFactory :: getDbo ( ) ; $ db -> setQuery ( 'SELECT enabled' . ' FROM #__extensions' . ' WHERE folder = ' . $ db -> quote ( 'system' ) . '  AND element = ' . $ db -> quote ( 'redirect' ) ) ; $ result = ( boolean ) $ db -> loadResult ( ) ; if ( $ error = $ db -> getErrorMsg ( ) ) { JError :: raiseWarning ( 500 , $ error ) ; } return $ result ; }
Determines if the plugin for Redirect to work is enabled.
Determines if the plugin for Redirect to work is enabled .