getSourceLanguage(); if ( $context ) { $language = $context->getLanguage()->getCode(); } $msgkey = $this->getFromConf( 'BASIC', 'descriptionmsg' ); $desc = ''; if ( $msgkey ) { $desc = $this->getMessage( $msgkey, $language ); if ( strval( $desc ) === '' ) { $desc = $this->getMessage( $msgkey, $this->getSourceLanguage() ); } } if ( strval( $desc ) === '' ) { // That failed, default to 'description' $desc = parent::getDescription( $context ); } $url = $this->getFromConf( 'BASIC', 'extensionurl' ); if ( $url ) { $desc .= "\n\n$url"; } return $desc; } }