* @file
*/
+use Wikimedia\WrappedString;
+use Wikimedia\WrappedStringList;
+
/**
* New base template for a skin's template extended from QuickTemplate
* this class features helper methods that provide common ways of interacting
}
if ( isset( $this->data['nav_urls']['permalink'] ) && $this->data['nav_urls']['permalink'] ) {
$toolbox['permalink'] = $this->data['nav_urls']['permalink'];
- if ( $toolbox['permalink']['href'] === '' ) {
- unset( $toolbox['permalink']['href'] );
- $toolbox['ispermalink']['tooltiponly'] = true;
- $toolbox['ispermalink']['id'] = 't-ispermalink';
- $toolbox['ispermalink']['msg'] = 'permalink';
- } else {
- $toolbox['permalink']['id'] = 't-permalink';
- }
+ $toolbox['permalink']['id'] = 't-permalink';
}
if ( isset( $this->data['nav_urls']['info'] ) && $this->data['nav_urls']['info'] ) {
$toolbox['info'] = $this->data['nav_urls']['info'];
* debug stuff. This should be called right before outputting the closing
* body and html tags.
*
- * @return string
+ * @return string|WrappedStringList HTML
* @since 1.29
*/
- function getTrail() {
- $html = MWDebug::getDebugHTML( $this->getSkin()->getContext() );
- $html .= $this->get( 'bottomscripts' );
- $html .= $this->get( 'reporttime' );
-
- return $html;
+ public function getTrail() {
+ return WrappedString::join( "\n", [
+ MWDebug::getDebugHTML( $this->getSkin()->getContext() ),
+ $this->get( 'bottomscripts' ),
+ $this->get( 'reporttime' )
+ ] );
}
}