Extension talk:Watchers

From MediaWiki.org
Jump to navigation Jump to search

Encoding issue[edit]

I've found an issue with the page name encoding. Page name with &-characters does not work. Here is the fix

 Index: Watchers.php
 ===================================================================
 --- Watchers.php        (revision 68345)
 +++ Watchers.php        (working copy)
 @@ -59,7 +59,7 @@   
 
         echo '<li id="t-watchers"><a href="' ;
         $nt = SpecialPage::getTitleFor( 'Watchers' );
 -       echo $nt->escapeLocalURL( 'page=' . $wgTitle->getPrefixedDBkey() );
 +       echo $nt->escapeLocalURL( 'page=' . urlencode($wgTitle->getPrefixedDBkey()) );
         echo '">';
         echo wfMsgHtml( 'watchers_link_title' );
         echo "</a></li>\n";

--Jouni Renfors 07:46, 22 June 2010 (UTC)

Not available on the download link[edit]

The current download link on this page points to https://www.mediawiki.org/wiki/Special:ExtensionDistributor/

However, the Watchers extension is not available on the dropdown menu.

Sources from SVN fail when viewing "special" pages[edit]

I downloaded the sources from the svn (just 4 files Watchers.alias.php Watchers_body.php Watchers.i18n.php Watchers.php), and followed instructions.

I can see the extension as installed in the 'Versions' special [age but when visiting all Special Pages, it fails with:

6bc39b9e46aeedf0c41437e0] /wiki/Special:SpecialPages Error from line 18 of /var/www/wiki/extensions/Watchers/Watchers_body.php: Call to undefined method SpecialWatchers::includable()

Backtrace:

#0 /var/www/wiki/includes/specialpage/SpecialPageFactory.php(382): SpecialWatchers->__construct()
#1 /var/www/wiki/includes/specialpage/SpecialPageFactory.php(428): SpecialPageFactory::getPage(string)
#2 /var/www/wiki/includes/specials/SpecialSpecialpages.php(53): SpecialPageFactory::getUsablePages(User)
#3 /var/www/wiki/includes/specials/SpecialSpecialpages.php(42): SpecialSpecialpages->getPageGroups()
#4 /var/www/wiki/includes/specialpage/SpecialPage.php(522): SpecialSpecialpages->execute(NULL)
#5 /var/www/wiki/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)
#6 /var/www/wiki/includes/MediaWiki.php(288): SpecialPageFactory::executePath(Title, RequestContext)
#7 /var/www/wiki/includes/MediaWiki.php(861): MediaWiki->performRequest()
#8 /var/www/wiki/includes/MediaWiki.php(524): MediaWiki->main()
#9 /var/www/wiki/index.php(42): MediaWiki->run()
#10 {main}

Are there more resources to download? Ankostis (talk) 12:00, 11 Oct2018 (UTC)