X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fchangetags%2FChangeTagsList.php;h=afbbb2bf5b6ecda749c485a3c184147c7dc98166;hp=dd8bab98788892b9625b0daa212b702fef559d62;hb=d19826aa35b206847a568a4b2c1c9ffaa615fca5;hpb=7f1df682b62457e267831ec6527ca4728723caef diff --git a/includes/changetags/ChangeTagsList.php b/includes/changetags/ChangeTagsList.php index dd8bab9878..afbbb2bf5b 100644 --- a/includes/changetags/ChangeTagsList.php +++ b/includes/changetags/ChangeTagsList.php @@ -39,8 +39,8 @@ abstract class ChangeTagsList extends RevisionListBase { * @throws Exception If you give an unknown $typeName */ public static function factory( $typeName, IContextSource $context, - Title $title, array $ids ) { - + Title $title, array $ids + ) { switch ( $typeName ) { case 'revision': $className = 'ChangeTagsRevisionList'; @@ -49,8 +49,9 @@ abstract class ChangeTagsList extends RevisionListBase { $className = 'ChangeTagsLogList'; break; default: - throw new Exception( "Class $className requested, but does not exist" ); + throw new Exception( "Class $typeName requested, but does not exist" ); } + return new $className( $context, $title, $ids ); }