r87561 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87560‎ | r87561 | r87562 >
Date:18:53, 6 May 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
follow up to r87559
Modified paths:
  • /trunk/extensions/SemanticWatchlist/SemanticWatchlist.hooks.php (modified) (history)
  • /trunk/extensions/SemanticWatchlist/SemanticWatchlist.i18n.php (modified) (history)
  • /trunk/extensions/SemanticWatchlist/SemanticWatchlist.php (modified) (history)
  • /trunk/extensions/SemanticWatchlist/api/ApiQuerySemanticWatchlist.php (added) (history)
  • /trunk/extensions/SemanticWatchlist/api/ApiSemanticWatchlist.php (added) (history)
  • /trunk/extensions/SemanticWatchlist/specials/SpecialSemanticWatchlist.php (added) (history)

Diff [purge]

Index: trunk/extensions/SemanticWatchlist/specials/SpecialSemanticWatchlist.php
@@ -0,0 +1 @@
 2+<?php
Property changes on: trunk/extensions/SemanticWatchlist/specials/SpecialSemanticWatchlist.php
___________________________________________________________________
Added: svn:eol-style
13 + native
Index: trunk/extensions/SemanticWatchlist/api/ApiSemanticWatchlist.php
@@ -0,0 +1 @@
 2+<?php
Property changes on: trunk/extensions/SemanticWatchlist/api/ApiSemanticWatchlist.php
___________________________________________________________________
Added: svn:eol-style
13 + native
Index: trunk/extensions/SemanticWatchlist/api/ApiQuerySemanticWatchlist.php
@@ -0,0 +1 @@
 2+<?php
Property changes on: trunk/extensions/SemanticWatchlist/api/ApiQuerySemanticWatchlist.php
___________________________________________________________________
Added: svn:eol-style
13 + native
Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.i18n.php
@@ -18,7 +18,7 @@
1919 * @author Jeroen De Dauw
2020 */
2121 $messages['en'] = array(
22 - 'semanticwatchlist-desc' => 'Semantic Watchlist is an extension ...',
 22+ 'semanticwatchlist-desc' => 'Semantic Watchlist is an extension that allows specifying groups of semantic properties for one or more categories/namespaces which can then be wacthed for changes.',
2323
2424 );
2525
Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.php
@@ -25,9 +25,18 @@
2626 }
2727
2828 if ( version_compare( $wgVersion, '1.17', '<' ) ) {
29 - die( 'Semantic Watchlist requires MediaWiki 1.17 or above.' );
 29+ die( '<b>Error:</b> Semantic Watchlist requires MediaWiki 1.17 or above.' );
3030 }
3131
 32+// Show a warning if Semantic MediaWiki is not loaded.
 33+if ( ! defined( 'SMW_VERSION' ) ) {
 34+ die( '<b>Error:</b> You need to have <a href="http://semantic-mediawiki.org/wiki/Semantic_MediaWiki">Semantic MediaWiki</a> installed in order to use Semantic Watchlist.' );
 35+}
 36+
 37+if ( version_compare( SMW_VERSION, '1.6 alpha', '<' ) ) {
 38+ die( '<b>Error:</b> Semantic Watchlist requires Semantic MediaWiki 1.6 or above.' );
 39+}
 40+
3241 define( 'SemanticWatchlist_VERSION', '0.1 alpha' );
3342
3443 $wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 'other'][] = array(
@@ -59,3 +68,5 @@
6069 require_once 'SemanticWatchlist.settings.php';
6170
6271 $wgAutoloadClasses['SWLHooks'] = dirname( __FILE__ ) . '/SemanticWatchlist.hooks.php';
 72+
 73+$wgHooks['SMWStore::updateDataBefore'][] = 'SWLHooks::onBeforeDataUpdate';
Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.hooks.php
@@ -13,6 +13,8 @@
1414 */
1515 final class SWLHooks {
1616
 17+ public static function onBeforeDataUpdate( SMWStore $store, SMWSemanticData $data ) {
 18+
 19+ }
1720
18 -
1921 }
\ No newline at end of file

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r87559follow up to r87554jeroendedauw18:24, 6 May 2011

Status & tagging log