X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=blobdiff_plain;f=includes%2Fskins%2FSkin.php;h=8384ca0c25b0abf0809475b4ce20caf15f501574;hb=2dd32981a8326a6207ac866b39410f1b86179288;hp=6739c08f8fa8dcf26dd8b546da036f053b682f7f;hpb=967a96e7fa5910f8fc451590decb381dbfb481ba;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php index 6739c08f8f..8384ca0c25 100644 --- a/includes/skins/Skin.php +++ b/includes/skins/Skin.php @@ -220,7 +220,6 @@ abstract class Skin extends ContextSource { // Preload jquery.tablesorter for mediawiki.page.ready if ( strpos( $out->getHTML(), 'sortable' ) !== false ) { $modules['content'][] = 'jquery.tablesorter'; - $modules['styles']['content'][] = 'jquery.tablesorter.styles'; } // Preload jquery.makeCollapsible for mediawiki.page.ready @@ -976,7 +975,7 @@ abstract class Skin extends ContextSource { if ( is_string( $icon ) ) { $html = $icon; } else { // Assuming array - $url = isset( $icon["url"] ) ? $icon["url"] : null; + $url = $icon["url"] ?? null; unset( $icon["url"] ); if ( isset( $icon["src"] ) && $withImage === 'withImage' ) { // do this the lazy way, just pass icon data as an attribute array @@ -1454,7 +1453,7 @@ abstract class Skin extends ContextSource { if ( count( $newtalks ) == 1 && $newtalks[0]['wiki'] === wfWikiID() ) { $uTalkTitle = $user->getTalkPage(); - $lastSeenRev = isset( $newtalks[0]['rev'] ) ? $newtalks[0]['rev'] : null; + $lastSeenRev = $newtalks[0]['rev'] ?? null; $nofAuthors = 0; if ( $lastSeenRev !== null ) { $plural = true; // Default if we have a last seen revision: if unknown, use plural @@ -1605,8 +1604,7 @@ abstract class Skin extends ContextSource { } /** - * Create a section edit link. This supersedes editSectionLink() and - * editSectionLinkForOther(). + * Create a section edit link. * * @param Title $nt The title being linked to (may not be the same as * the current page, if the section is included from a template)