Robert Vogel has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/306441

Change subject: InsertLink: JAR Permissions & new JNLP endpoint #2
......................................................................

InsertLink: JAR Permissions & new JNLP endpoint #2

Added 'Permission' attribute to bsFileChooser.jar and added a
new endpoint for the JNLP file

ATTENTION: This is a two part change. Do not merge until the other part is
also merged.

See https://gerrit.wikimedia.org/r/#/c/306437/

Change-Id: I8973c3bf45733789f36f44a9434a70ae278f797f
---
M InsertLink/InsertLink.class.php
M InsertLink/InsertLink.setup.php
2 files changed, 3 insertions(+), 31 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions 
refs/changes/41/306441/1

diff --git a/InsertLink/InsertLink.class.php b/InsertLink/InsertLink.class.php
index c6ee1a9..3b02044 100644
--- a/InsertLink/InsertLink.class.php
+++ b/InsertLink/InsertLink.class.php
@@ -108,32 +108,4 @@
                $this->getOutput()->addJsConfigVars( 'bsInsertLinkEnableJava', 
BsConfig::get( 'MW::InsertLink::EnableJava' ) );
                return true;
        }
-
-       public static function onLoadExtensionSchemaUpdates(DatabaseUpdater 
$updater) {
-               //Create bsFileLnkChooser.jnlp File with proper path
-               //Important: $wgServer should be public url, not localhost
-               global $wgServer, $wgScriptPath, $IP;
-               $bsFileLinkChooser = '
-               <?xml version="1.0" encoding="utf-8"?>
-               <jnlp codebase="" href="" >
-                 <information>
-                       <title>BSFileLinkChooser</title>
-                       <vendor>HalloWelt GmbH</vendor>
-                       <homepage href="http://hallowelt.com"/>
-                       <description>Simple FileChooser 
Application</description>
-                       <description 
kind="short">BSFileLinkChooser</description>
-                       <offline-allowed/>
-                 </information>
-                 <security>
-                         <all-permissions/>
-                 </security>
-                 <resources>
-                       <j2se version="1.6+"/>
-                       <jar 
href="'.$wgServer.$wgScriptPath.'/extensions/BlueSpiceExtensions/InsertLink/vendor/bsFileLinkChooser.jar"
 main="true"/>
-                 </resources>
-                 <application-desc 
main-class="bsFileLinkChooser.JWSFileChooser"/>
-               </jnlp>';
-               file_put_contents( __DIR__ . 
"/../../BlueSpiceFoundation/data/bsFileLinkChooser.jnlp", $bsFileLinkChooser);
-               $updater->output( "InsertLink jnlp file created.\n" );
-       }
 }
\ No newline at end of file
diff --git a/InsertLink/InsertLink.setup.php b/InsertLink/InsertLink.setup.php
index a650206..7394faa 100644
--- a/InsertLink/InsertLink.setup.php
+++ b/InsertLink/InsertLink.setup.php
@@ -3,6 +3,8 @@
 BsExtensionManager::registerExtension('InsertLink', 
BsRUNLEVEL::FULL|BsRUNLEVEL::REMOTE);
 
 $GLOBALS['wgAutoloadClasses']['InsertLink'] = __DIR__ . 
'/InsertLink.class.php';
+$GLOBALS['wgAutoloadClasses']['SpecialInsertLinkFileChooserJNLP'] = __DIR__ . 
'/includes/specials/SpecialInsertLinkFileChooserJNLP.php';
+$GLOBALS['wgSpecialPages']['InsertLinkFileChooserJNLP'] = 
'SpecialInsertLinkFileChooserJNLP';
 
 $wgMessagesDirs['InsertLink'] = __DIR__ . '/i18n';
 
@@ -44,6 +46,4 @@
        'position' => 'top'
 ) + $aResourceModuleTemplate;
 
-unset( $aResourceModuleTemplate );
-
-$wgHooks['LoadExtensionSchemaUpdates'][] = 
'InsertLink::onLoadExtensionSchemaUpdates';
\ No newline at end of file
+unset( $aResourceModuleTemplate );
\ No newline at end of file

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8973c3bf45733789f36f44a9434a70ae278f797f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: REL1_23
Gerrit-Owner: Robert Vogel <[email protected]>

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

Reply via email to