english/libraries/joomla/html/toolbar/button/popup.php
/**
	 * Get the JavaScript command for the button
	 *
	 * @param   object   $definition	Button definition
	 * @return  string   JavaScript command string
	 * @since   11.1
	 */
Get the JavaScript command for the button
@param   object   $definition        Button definition
@return  string   JavaScript command string
@since   11.1
Get the JavaScript command for the button @param object $definition Button definition @return string JavaScript command string @since 11 . 1
protected function _getCommand($name, $url, $width, $height, $top, $left)
	{
		if (substr($url, 0, 4) !== 'http') {
			$url = JURI::base().$url;
		}
		return $url;
	}
protected function _getCommand ( $ name , $ url , $ width , $ height , $ top , $ left ) { if ( substr ( $ url , 0 , 4 ) !== 'http' ) { $ url = JURI :: base ( ) . $ url ; } return $ url ; }
Get the JavaScript command for the button
 @param   object   $definition        Button definition
 @return  string   JavaScript command string
 @since   11.1
Get the JavaScript command for the button @param object $definition Button definition @return string JavaScript command string @since 11 . 1