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 |
1 | 3 | + 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 |
1 | 3 | + 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 |
1 | 3 | + native |
Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.i18n.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | * @author Jeroen De Dauw |
20 | 20 | */ |
21 | 21 | $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.', |
23 | 23 | |
24 | 24 | ); |
25 | 25 | |
Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.php |
— | — | @@ -25,9 +25,18 @@ |
26 | 26 | } |
27 | 27 | |
28 | 28 | 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.' ); |
30 | 30 | } |
31 | 31 | |
| 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 | + |
32 | 41 | define( 'SemanticWatchlist_VERSION', '0.1 alpha' ); |
33 | 42 | |
34 | 43 | $wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 'other'][] = array( |
— | — | @@ -59,3 +68,5 @@ |
60 | 69 | require_once 'SemanticWatchlist.settings.php'; |
61 | 70 | |
62 | 71 | $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 @@ |
14 | 14 | */ |
15 | 15 | final class SWLHooks { |
16 | 16 | |
| 17 | + public static function onBeforeDataUpdate( SMWStore $store, SMWSemanticData $data ) { |
| 18 | + |
| 19 | + } |
17 | 20 | |
18 | | - |
19 | 21 | } |
\ No newline at end of file |