Index: trunk/extensions/SemanticResultFormats/Gallery/SRF_Gallery.php |
— | — | @@ -28,7 +28,6 @@ |
29 | 29 | $ig->setShowBytes( false ); |
30 | 30 | $ig->setShowFilename( false ); |
31 | 31 | $ig->setParser( $wgParser ); |
32 | | - $ig->useSkin( $wgUser->getSkin() ); // FIXME: deprecated method usage |
33 | 32 | $ig->setCaption( $this->mIntro ); // set caption to IQ header |
34 | 33 | |
35 | 34 | if ( $this->m_params['perrow'] !== '' ) { |
Index: trunk/extensions/SemanticResultFormats/Calendar/SRF_Calendar.php |
— | — | @@ -51,10 +51,8 @@ |
52 | 52 | * TODO: split up megamoth |
53 | 53 | */ |
54 | 54 | protected function getResultText( SMWQueryResult $res, $outputmode ) { |
55 | | - global $wgUser; |
56 | | - $skin = $wgUser->getSkin(); |
57 | | - |
58 | 55 | $events = array(); |
| 56 | + |
59 | 57 | // print all result rows |
60 | 58 | while ( $row = $res->getNext() ) { |
61 | 59 | $dates = array(); |
— | — | @@ -113,7 +111,7 @@ |
114 | 112 | |
115 | 113 | // handling of "headers=" param |
116 | 114 | if ( $this->mShowHeaders == SMW_HEADERS_SHOW ) { |
117 | | - $textForProperty .= $pr->getHTMLText( $skin ) . ' '; |
| 115 | + $textForProperty .= $pr->getHTMLText( smwfGetLinker() ) . ' '; |
118 | 116 | } elseif ( $this->mShowHeaders == SMW_HEADERS_PLAIN ) { |
119 | 117 | $textForProperty .= $pr->getLabel() . ' '; |
120 | 118 | } |
— | — | @@ -121,14 +119,14 @@ |
122 | 120 | // if $this->mShowHeaders == SMW_HEADERS_HIDE, print nothing |
123 | 121 | // handling of "link=" param |
124 | 122 | if ( $this->mLinkOthers ) { |
125 | | - $textForProperty .= $object->getLongText( $outputmode, $skin ); |
| 123 | + $textForProperty .= $object->getLongText( $outputmode, smwfGetLinker() ); |
126 | 124 | } else { |
127 | 125 | $textForProperty .= $object->getWikiValue(); |
128 | 126 | } |
129 | 127 | } |
130 | 128 | } else { |
131 | 129 | $numNonDateProperties++; |
132 | | - $textForProperty .= $pr->getHTMLText( $skin ) . ' ' . $object->getShortText( $outputmode, $skin ); |
| 130 | + $textForProperty .= $pr->getHTMLText( smwfGetLinker() ) . ' ' . $object->getShortText( $outputmode, smwfGetLinker() ); |
133 | 131 | } |
134 | 132 | if ( $pr->getMode() == SMWPrintRequest::PRINT_PROP && $pr->getTypeID() == '_dat' ) { |
135 | 133 | $dates[] = $this->formatDateStr( $object ); |