english/administrator/includes/helper.php
/**
	 * Return the application option string [main component].
	 *
	 * @return	string		Option.
	 * @since	1.5
	 */
Return the application option string [main component].
@return      string          Option.
Return the application option string [ main component ] . @return string Option .
public static function findOption()
	{
		$option = strtolower(JRequest::getCmd('option'));
		$user = JFactory::getUser();
		if ($user->get('guest')) {
			$option = 'com_login';
		}
		if (empty($option)) {
			$option = 'com_cpanel';
		}
		JRequest::setVar('option', $option);
		return $option;
	}
public static function findOption ( ) { $ option = strtolower ( JRequest :: getCmd ( 'option' ) ) ; $ user = JFactory :: getUser ( ) ; if ( $ user -> get ( 'guest' ) ) { $ option = 'com_login' ; } if ( empty ( $ option ) ) { $ option = 'com_cpanel' ; } JRequest :: setVar ( 'option' , $ option ) ; return $ option ; }
Return the application option string [main component].
Return the application option string [ main component ] .