http://www.mediawiki.org/wiki/Special:Code/MediaWiki/83643

Revision: 83643
Author:   tbleher
Date:     2011-03-10 07:45:49 +0000 (Thu, 10 Mar 2011)
Log Message:
-----------
Followup r82577: Only generate talk page links on content pages

As suggested in 
http://www.mediawiki.org/wiki/Special:Code/MediaWiki/82577#c14726.
DumpHTML is still broken in many ways, but at least it runs through now.

Modified Paths:
--------------
    trunk/extensions/DumpHTML/SkinOffline.php

Modified: trunk/extensions/DumpHTML/SkinOffline.php
===================================================================
--- trunk/extensions/DumpHTML/SkinOffline.php   2011-03-10 05:38:11 UTC (rev 
83642)
+++ trunk/extensions/DumpHTML/SkinOffline.php   2011-03-10 07:45:49 UTC (rev 
83643)
@@ -57,12 +57,14 @@
                        $nskey,
                        !$this->mTitle->isTalkPage() );
 
-               $content_actions['talk'] = $this->tabAction(
-                       $this->mTitle->getTalkPage(),
-                       'talk',
-                       $this->mTitle->isTalkPage(),
-                       '',
-                       true);
+               if( $this->mTitle->canTalk() ) {
+                       $content_actions['talk'] = $this->tabAction(
+                               $this->mTitle->getTalkPage(),
+                               'talk',
+                               $this->mTitle->isTalkPage(),
+                               '',
+                               true);
+               }
 
                if ( isset( $wgHTMLDump ) ) {
                        $content_actions['current'] = array(


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to