getConfigFactory()->makeConfig( 'vector' ); $printLogo = $config->get( 'VectorPrintLogo' ); } catch ( ConfigException $e ) { // Config is not available when running in the context of the MediaWiki installer. (T183640) $printLogo = false; } if ( $printLogo ) { $lessVars[ 'printLogo' ] = true; $lessVars[ 'printLogoUrl' ] = CSSMin::buildUrlValue( $printLogo['url'] ); $lessVars[ 'printLogoWidth' ] = intval( $printLogo['width'] ); $lessVars[ 'printLogoHeight' ] = intval( $printLogo['height'] ); } else { $lessVars[ 'printLogo' ] = false; } return $lessVars; } }