Call Linker::titleAttrib() statically
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 10 Sep 2011 21:14:28 +0000 (21:14 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 10 Sep 2011 21:14:28 +0000 (21:14 +0000)
includes/SkinTemplate.php

index 5863c47..82d4ace 100644 (file)
@@ -1535,7 +1535,7 @@ abstract class BaseTemplate extends QuickTemplate {
                }
                if ( isset( $item['single-id'] ) ) {
                        if ( isset( $item['tooltiponly'] ) && $item['tooltiponly'] ) {
-                               $attrs['title'] = $this->getSkin()->titleAttrib( $item['single-id'] );
+                               $attrs['title'] = Linker::titleAttrib( $item['single-id'] );
                                if ( $attrs['title'] === false ) {
                                        unset( $attrs['title'] );
                                }