https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114151

Revision: 114151
Author:   ialex
Date:     2012-03-19 16:40:00 +0000 (Mon, 19 Mar 2012)
Log Message:
-----------
* (bug 34980) [Regression] IRC action text should never contain HTML for title

Regression from r106782: extensions using $wgLogActionsHandlers need to check 
$skin and not make a HTML link if that parameter is not an object

Modified Paths:
--------------
    trunk/extensions/CentralAuth/CentralAuth.php

Modified: trunk/extensions/CentralAuth/CentralAuth.php
===================================================================
--- trunk/extensions/CentralAuth/CentralAuth.php        2012-03-19 16:32:12 UTC 
(rev 114150)
+++ trunk/extensions/CentralAuth/CentralAuth.php        2012-03-19 16:40:00 UTC 
(rev 114151)
@@ -311,7 +311,11 @@
  * @return String
  */
 function efHandleWikiSetLogEntry( $type, $action, $title, $skin, $params, 
$filterWikilinks = false ) {
-       $link = Linker::makeLinkObj( $title, htmlspecialchars( $params[0] ) );
+       if ( $skin ) {
+               $link = Linker::makeLinkObj( $title, htmlspecialchars( 
$params[0] ) );
+       } else {
+               $link = $params[0];
+       }
 
        switch( $action ) {
                case 'newset':


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to