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

Revision: 88566
Author:   mkroetzsch
Date:     2011-05-22 10:27:19 +0000 (Sun, 22 May 2011)
Log Message:
-----------
moved some default implementations to the base class

Modified Paths:
--------------
    trunk/extensions/SemanticMediaWiki/specials/QueryPages/SMW_QueryPage.php
    
trunk/extensions/SemanticMediaWiki/specials/QueryPages/SMW_SpecialProperties.php

Modified: 
trunk/extensions/SemanticMediaWiki/specials/QueryPages/SMW_QueryPage.php
===================================================================
--- trunk/extensions/SemanticMediaWiki/specials/QueryPages/SMW_QueryPage.php    
2011-05-22 08:47:08 UTC (rev 88565)
+++ trunk/extensions/SemanticMediaWiki/specials/QueryPages/SMW_QueryPage.php    
2011-05-22 10:27:19 UTC (rev 88566)
@@ -29,6 +29,18 @@
                /// TODO
        }
 
+       function getName() {
+               return "SMWQueryPage";
+       }
+
+       function isExpensive() {
+               return false; // Disables caching for now
+       }
+
+       function isSyndicated() {
+               return false; // TODO: why not?
+       }
+
        /**
         * This is the actual workhorse. It does everything needed to make a
         * real, honest-to-gosh query page.
@@ -104,8 +116,7 @@
     public function getSkin() {
         if ( method_exists( 'SpecialPage', 'getSkin' ) ) {
             return parent::getSkin();
-        }
-        else {
+        } else {
             global $wgUser;
             return $wgUser->getSkin();
         }

Modified: 
trunk/extensions/SemanticMediaWiki/specials/QueryPages/SMW_SpecialProperties.php
===================================================================
--- 
trunk/extensions/SemanticMediaWiki/specials/QueryPages/SMW_SpecialProperties.php
    2011-05-22 08:47:08 UTC (rev 88565)
+++ 
trunk/extensions/SemanticMediaWiki/specials/QueryPages/SMW_SpecialProperties.php
    2011-05-22 10:27:19 UTC (rev 88566)
@@ -47,19 +47,6 @@
  */
 class SMWPropertiesPage extends SMWQueryPage {
 
-       function getName() {
-               // TODO: should probably use SMW prefix
-               return "Properties";
-       }
-
-       function isExpensive() {
-               return false; // Disables caching for now
-       }
-
-       function isSyndicated() {
-               return false; // TODO: why not?
-       }
-
        function getPageHeader() {
                return '<p>' . wfMsg( 'smw_properties_docu' ) . "</p><br />\n";
        }


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

Reply via email to