]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - includes/specials/SpecialUnwatchedpages.php
MediaWiki 1.17.0
[autoinstallsdev/mediawiki.git] / includes / specials / SpecialUnwatchedpages.php
index 64ab3729950a9d5497d86f50258d69ea45e1800e..ecd62cb7c97e06b54ae7c82eaba13a526dad9571 100644 (file)
@@ -1,17 +1,33 @@
 <?php
 /**
+ * Implements Special:Unwatchedpages
+ *
+ * Copyright © 2005 Ævar Arnfjörð Bjarmason
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
  * @file
  * @ingroup SpecialPage
+ * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
  */
 
 /**
  * A special page that displays a list of pages that are not on anyones watchlist.
- * Implements Special:Unwatchedpages
  *
  * @ingroup SpecialPage
- * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
  */
 class UnwatchedpagesPage extends QueryPage {
 
@@ -44,8 +60,16 @@ class UnwatchedpagesPage extends QueryPage {
                $nt = Title::makeTitle( $result->namespace, $result->title );
                $text = $wgContLang->convert( $nt->getPrefixedText() );
 
-               $plink = $skin->makeKnownLinkObj( $nt, htmlspecialchars( $text ) );
-               $wlink = $skin->makeKnownLinkObj( $nt, wfMsgHtml( 'watch' ), 'action=watch' );
+               $plink = $skin->linkKnown(
+                       $nt,
+                       htmlspecialchars( $text )
+               );
+               $wlink = $skin->linkKnown(
+                       $nt,
+                       wfMsgHtml( 'watch' ),
+                       array(),
+                       array( 'action' => 'watch' )
+               );
 
                return wfSpecialList( $plink, $wlink );
        }