bkaempgen has submitted this change and it was merged.

Change subject: Several tweaks to the extension
......................................................................


Several tweaks to the extension

* added check for the call of the extension
* changed extension's URL to https

Change-Id: I1a53a7b45815f057a6e3bf2b4f849ccc5d01faff
---
M SWB_Settings.php
M SemanticWebBrowser.php
2 files changed, 15 insertions(+), 5 deletions(-)

Approvals:
  bkaempgen: Verified; Looks good to me, approved



diff --git a/SWB_Settings.php b/SWB_Settings.php
index d8ed203..c332836 100644
--- a/SWB_Settings.php
+++ b/SWB_Settings.php
@@ -21,10 +21,14 @@
 $wgExtensionCredits['semantic'][] = array(
        'path'    => __FILE__,
        'name'    => 'Semantic Web Browser',
-       'version' =>  '0.4',
-       'author'  =>  array( '[http://www.b-kaempgen.de 
Benedikt Kämpgen]', 'Anna Kantorovitch', 'Andreas Adler' ),
-       'url'     =>  
'http://www.mediawiki.org/wiki/Extension:Semantic_Web_Browser',
-       'descriptionmsg' =>  'swb_desc'
+       'version' => '0.4',
+       'author'  => array(
+                       '[http://www.b-kaempgen.de Benedikt Kämpgen]',
+                       'Anna Kantorovitch',
+                       'Andreas Adler'
+                       ),
+       'url'     => 
'https://www.mediawiki.org/wiki/Extension:Semantic_Web_Browser',
+       'descriptionmsg' => 'swb_desc'
 );
 
 /**
@@ -34,4 +38,4 @@
 $swbgToolboxBrowseSemWeb = true;
 
 // load global constants and setup functions
-require_once( $swbgIP . 'SemanticWebBrowser.php' );
\ No newline at end of file
+require_once( $swbgIP . 'SemanticWebBrowser.php' );
diff --git a/SemanticWebBrowser.php b/SemanticWebBrowser.php
index 136d2c1..cd8a79a 100644
--- a/SemanticWebBrowser.php
+++ b/SemanticWebBrowser.php
@@ -6,6 +6,12 @@
  * @ingroup SWB
  */
 
+// ask if we are being called directly
+if ( !defined( 'MEDIAWIKI' ) ) {
+        die( 'Not an entry point.' );
+}
+
+// load settings file
 require_once dirname( __FILE__ ) . '/SWB_Settings.php';
 
 /**

-- 
To view, visit https://gerrit.wikimedia.org/r/97745
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I1a53a7b45815f057a6e3bf2b4f849ccc5d01faff
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/SemanticWebBrowser
Gerrit-Branch: master
Gerrit-Owner: Kghbln <mediaw...@kghoffmeyer.de>
Gerrit-Reviewer: bkaempgen <benedikt.kaemp...@kit.edu>

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

Reply via email to