[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[REL1_27]: FlexiSkin: Update Path Build on Logo directory interator to ...

2018-01-19 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/405265 )

Change subject: FlexiSkin: Update Path Build on Logo directory interator to 
prevent lookup error on special data and image paths (non default config)
..

FlexiSkin: Update Path Build on Logo directory interator to prevent lookup 
error on special data and image paths (non default config)

Change-Id: If0df06552975e481ba79498f5cfee0383286acfd
---
M Flexiskin/includes/api/BSApiFlexiskinUploadStore.php
1 file changed, 2 insertions(+), 2 deletions(-)


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

diff --git a/Flexiskin/includes/api/BSApiFlexiskinUploadStore.php 
b/Flexiskin/includes/api/BSApiFlexiskinUploadStore.php
index 20b16ec..40b203f 100644
--- a/Flexiskin/includes/api/BSApiFlexiskinUploadStore.php
+++ b/Flexiskin/includes/api/BSApiFlexiskinUploadStore.php
@@ -40,7 +40,7 @@
 
$flexiskinFiles = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator(
-   $wgUploadDirectory.'/bluespice/flexiskin/' . 
$sQuery . '/images/',
+   BsFileSystemHelper::getDataDirectory( 
'flexiskin/' . $sQuery . '/images/' ),
( RecursiveIteratorIterator::SELF_FIRST | 
RecursiveDirectoryIterator::SKIP_DOTS )
)
);
@@ -56,4 +56,4 @@
 
return $aData;
}
-}
\ No newline at end of file
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If0df06552975e481ba79498f5cfee0383286acfd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: REL1_27
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceMultiUpload[master]: first draft for drag and drop file upload with dropzone in t...

2017-12-21 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/399614 )

Change subject: first draft for drag and drop file upload with dropzone in 
tools navigation
..

first draft for drag and drop file upload with dropzone in tools navigation

Change-Id: Ieaab71dc07b7cbd6e1889903edda86cbf7c5ba21
---
M extension.json
M i18n/en.json
M i18n/qqq.json
M includes/BlueSpiceMultiUploadHooks.php
A resources/ext.bluespice.multiUpload.dropzone.css
A resources/ext.bluespice.multiUpload.dropzone.js
6 files changed, 63 insertions(+), 5 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceMultiUpload 
refs/changes/14/399614/1

diff --git a/extension.json b/extension.json
index 3a2b8b1..aaa5a34 100644
--- a/extension.json
+++ b/extension.json
@@ -2,7 +2,8 @@
"name": "BlueSpiceMultiUpload",
"version": "2.27.0",
"author": [
-   "[http://www.hallowelt.com Hallo Welt! GmbH]"
+   "Robert Vogel",
+   "Leonid Verhovskij"
],
"url": "http://bluespice.com";,
"descriptionmsg": "bs-multiupload-desc",
@@ -25,12 +26,20 @@
"Hooks": {
"BeforePageDisplay": 
"BlueSpiceMultiUploadHooks::onBeforePageDisplay",
"BeforePageDisplayMobile": 
"BlueSpiceMultiUploadHooks::onBeforePageDisplayMobile",
-   "MobileMenu": "BlueSpiceMultiUploadHooks::onMobileMenu"
+   "MobileMenu": "BlueSpiceMultiUploadHooks::onMobileMenu",
+   "SkinTemplateOutputPageBeforeExec": 
"BlueSpiceMultiUploadHooks::onSkinTemplateOutputPageBeforeExec"
},
"ResourceModules": {
"ext.bluespice.multiUpload": {
"scripts": [
-   "ext.bluespice.multiUpload.js"
+   "ext.bluespice.multiUpload.js",
+   "ext.bluespice.multiUpload.dropzone.js"
+   ],
+   "messages": [
+   "bs-uploader-drop-or-click"
+   ],
+   "styles": [
+   "ext.bluespice.multiUpload.dropzone.css"
],
"dependencies": [
"ext.bluespice.uploader.bootstrap"
diff --git a/i18n/en.json b/i18n/en.json
index 87b1ea6..e84c63c 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -9,5 +9,6 @@
"bs-upload-multiuploaddialogtitle": "Upload files",
"bs-deferred-action-apiupload-description": "Upload of \"$1\" to 
\"$2\"",
"bs-uploader-mime-images-label": "Images",
-   "bs-uploader-mime-files-label": "Files"
+   "bs-uploader-mime-files-label": "Files",
+   "bs-uploader-drop-or-click": "Drag & Drop File here or click 
to select file for upload"
 }
\ No newline at end of file
diff --git a/i18n/qqq.json b/i18n/qqq.json
index c4baf83..e68bd83 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -11,5 +11,6 @@
"bs-upload-multiuploaddialogtitle": "Title of multi-upload diaplog 
window",
"bs-deferred-action-apiupload-description": "Description of an action 
that uploads a file to the wiki.\n\nParameters:\n* $1 - The source file name\n* 
$2 - The target file name",
"bs-uploader-mime-images-label": "Label used in a drop down that allows 
filtering for certain file types. Filters for image file 
types.\n{{Identical|Image}}",
-   "bs-uploader-mime-files-label": "Label used in a drop down that allows 
filtering for certain file types. Filters for all but image file 
types.\n{{Identical|File}}"
+   "bs-uploader-mime-files-label": "Label used in a drop down that allows 
filtering for certain file types. Filters for all but image file 
types.\n{{Identical|File}}",
+   "bs-uploader-drop-or-clic": "Lable used in file drop area to describe 
usage, user can drag and drop file for upload or click into the field to open 
file selection dialog."
 }
diff --git a/includes/BlueSpiceMultiUploadHooks.php 
b/includes/BlueSpiceMultiUploadHooks.php
index c34898f..d26e1ad 100644
--- a/includes/BlueSpiceMultiUploadHooks.php
+++ b/includes/BlueSpiceMultiUploadHooks.php
@@ -1,4 +1,8 @@
 extend( SDFD::PAGE_TOOLS, [
+   'DropZone' => []
+   ] );
+   return true;
+   }
 }
diff --git a/resources/ext.bluespice.multiUpload.dropzone.css 
b/resources/ext.bluespice.multiUpload.dropzone.css
new file mode 100644
index 000..7692148
--- /dev/null
+++ b/resources/ext.bluespice.multiUpload.dropzone.css
@@ -0,0 +1,9 @@
+#pnlDropZone{
+   min-height: 200px;
+   text-align: center;
+   cursor: pointer;
+}
+
+#pnlDropZone > p{
+   margin-top: 20%;
+}
\ No newline at end of file
diff --git a/resources/ext.bluespice.multiUpload.dropzone.js 
b/resources/ext.bluespice.multiUpload.dropzone.js
new file mode 100644
index 000..727b23f
--- /d

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpicePageAssignments[master]: BlueSpicePageAssignments: db schema fix, use index instead o...

2017-12-14 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/398235 )

Change subject: BlueSpicePageAssignments: db schema fix, use index instead of 
primary key for multiple indexes
..

BlueSpicePageAssignments: db schema fix, use index instead of primary key for 
multiple indexes

Change-Id: I0309bb077d26b61434d4f8206ebd026668d75b18
---
M db/ps_pageassignments.primary_key.patch.sql
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpicePageAssignments 
refs/changes/35/398235/1

diff --git a/db/ps_pageassignments.primary_key.patch.sql 
b/db/ps_pageassignments.primary_key.patch.sql
index c2a241f..4862613 100644
--- a/db/ps_pageassignments.primary_key.patch.sql
+++ b/db/ps_pageassignments.primary_key.patch.sql
@@ -1 +1 @@
-ALTER TABLE /*_*/bs_pageassignments ADD PRIMARY KEY( pa_page_id, 
pa_assignee_key, pa_assignee_type );
\ No newline at end of file
+ALTER TABLE /*_*/bs_pageassignments ADD INDEX( pa_page_id, pa_assignee_key, 
pa_assignee_type );
\ No newline at end of file

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0309bb077d26b61434d4f8206ebd026668d75b18
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpicePageAssignments
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceNamespaceCSS[master]: fix bs extension loading case

2017-12-13 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/398017 )

Change subject: fix bs extension loading case
..


fix bs extension loading case

Change-Id: I6c84f8fdaa5b94c6f6de437f5ca9a9a2b57675db
---
M extension.json
1 file changed, 1 insertion(+), 1 deletion(-)

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



diff --git a/extension.json b/extension.json
index 47451bf..d2100c0 100644
--- a/extension.json
+++ b/extension.json
@@ -11,7 +11,7 @@
"descriptionmsg": "bs-namespacecss-desc",
"type": "bluespice",
"bsgExtensions": {
-   "BlueSpiceNamespaceCss": {
+   "BlueSpiceNamespaceCSS": {
"className": "NamespaceCss",
"extPath": "/BlueSpiceNamespaceCSS"
}

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I6c84f8fdaa5b94c6f6de437f5ca9a9a2b57675db
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceNamespaceCSS
Gerrit-Branch: master
Gerrit-Owner: Ljonka 
Gerrit-Reviewer: ItSpiderman 
Gerrit-Reviewer: Ljonka 
Gerrit-Reviewer: Mglaser 
Gerrit-Reviewer: Pwirth 
Gerrit-Reviewer: Robert Vogel 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceNamespaceCSS[master]: fix bs extension loading case

2017-12-13 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/398017 )

Change subject: fix bs extension loading case
..

fix bs extension loading case

Change-Id: I6c84f8fdaa5b94c6f6de437f5ca9a9a2b57675db
---
M extension.json
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceNamespaceCSS 
refs/changes/17/398017/1

diff --git a/extension.json b/extension.json
index 47451bf..d2100c0 100644
--- a/extension.json
+++ b/extension.json
@@ -11,7 +11,7 @@
"descriptionmsg": "bs-namespacecss-desc",
"type": "bluespice",
"bsgExtensions": {
-   "BlueSpiceNamespaceCss": {
+   "BlueSpiceNamespaceCSS": {
"className": "NamespaceCss",
"extPath": "/BlueSpiceNamespaceCSS"
}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6c84f8fdaa5b94c6f6de437f5ca9a9a2b57675db
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceNamespaceCSS
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: Remove InsertCategory registration

2017-12-13 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/398012 )

Change subject: Remove InsertCategory registration
..


Remove InsertCategory registration

Change-Id: Ia5edf9cf318ced245b59ab7a08819104191211ef
ERM: #8164
---
M BlueSpiceExtensions.default.php
1 file changed, 0 insertions(+), 1 deletion(-)

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



diff --git a/BlueSpiceExtensions.default.php b/BlueSpiceExtensions.default.php
index 1139ff3..c39f4dc 100644
--- a/BlueSpiceExtensions.default.php
+++ b/BlueSpiceExtensions.default.php
@@ -1,4 +1,3 @@
 https://gerrit.wikimedia.org/r/398012
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia5edf9cf318ced245b59ab7a08819104191211ef
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: ItSpiderman 
Gerrit-Reviewer: Ljonka 
Gerrit-Reviewer: Mglaser 
Gerrit-Reviewer: Pwirth 
Gerrit-Reviewer: Robert Vogel 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: Remove InsertCategory extension

2017-12-13 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/397809 )

Change subject: Remove InsertCategory extension
..


Remove InsertCategory extension

Change-Id: I28a57198985240d2228c305ae739f1725d5b1478
ERM: #8164
---
D InsertCategory/COPYING
D InsertCategory/InsertCategory.class.php
D InsertCategory/InsertCategory.setup.php
D InsertCategory/extension.json
D InsertCategory/i18n/ar.json
D InsertCategory/i18n/ast.json
D InsertCategory/i18n/ba.json
D InsertCategory/i18n/bcc.json
D InsertCategory/i18n/bg.json
D InsertCategory/i18n/bgn.json
D InsertCategory/i18n/bn.json
D InsertCategory/i18n/br.json
D InsertCategory/i18n/ca.json
D InsertCategory/i18n/ce.json
D InsertCategory/i18n/ckb.json
D InsertCategory/i18n/cv.json
D InsertCategory/i18n/de-formal.json
D InsertCategory/i18n/de.json
D InsertCategory/i18n/diq.json
D InsertCategory/i18n/en.json
D InsertCategory/i18n/es.json
D InsertCategory/i18n/eu.json
D InsertCategory/i18n/fa.json
D InsertCategory/i18n/fr.json
D InsertCategory/i18n/fy.json
D InsertCategory/i18n/ga.json
D InsertCategory/i18n/gl.json
D InsertCategory/i18n/he.json
D InsertCategory/i18n/hu.json
D InsertCategory/i18n/ia.json
D InsertCategory/i18n/id.json
D InsertCategory/i18n/it.json
D InsertCategory/i18n/ja.json
D InsertCategory/i18n/jv.json
D InsertCategory/i18n/kab.json
D InsertCategory/i18n/ko.json
D InsertCategory/i18n/ksh.json
D InsertCategory/i18n/lb.json
D InsertCategory/i18n/lki.json
D InsertCategory/i18n/lt.json
D InsertCategory/i18n/lv.json
D InsertCategory/i18n/mk.json
D InsertCategory/i18n/nb.json
D InsertCategory/i18n/nds-nl.json
D InsertCategory/i18n/nl.json
D InsertCategory/i18n/oc.json
D InsertCategory/i18n/pl.json
D InsertCategory/i18n/pt-br.json
D InsertCategory/i18n/pt.json
D InsertCategory/i18n/qqq.json
D InsertCategory/i18n/roa-tara.json
D InsertCategory/i18n/ru.json
D InsertCategory/i18n/sd.json
D InsertCategory/i18n/sl.json
D InsertCategory/i18n/sv.json
D InsertCategory/i18n/tcy.json
D InsertCategory/i18n/tg-cyrl.json
D InsertCategory/i18n/tr.json
D InsertCategory/i18n/uk.json
D InsertCategory/i18n/yi.json
D InsertCategory/i18n/zh-hans.json
D InsertCategory/i18n/zh-hant.json
D InsertCategory/resources/BS.InsertCategory/AsyncCategoryTreePanel.js
D InsertCategory/resources/BS.InsertCategory/Dialog.js
D InsertCategory/resources/bluespice.insertCategory.css
D InsertCategory/resources/bluespice.insertCategory.js
D InsertCategory/resources/bluespice.insertCategory.uploadPanelIntegration.js
D InsertCategory/resources/images/button_insert-category-16px.png
D InsertCategory/resources/images/button_insert-category.png
69 files changed, 0 insertions(+), 2,086 deletions(-)

Approvals:
  Ljonka: Verified; Looks good to me, approved
  Raimond Spekking: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/InsertCategory/COPYING b/InsertCategory/COPYING
deleted file mode 100644
index e72bfdd..000
--- a/InsertCategory/COPYING
+++ /dev/null
@@ -1,674 +0,0 @@
-GNU GENERAL PUBLIC LICENSE
-   Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc. 
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-Preamble
-
-  The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
-
-  The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works.  By contrast,
-the GNU General Public License is intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users.  We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors.  You can apply it to
-your programs, too.
-
-  When we speak of free software, we are referring to freedom, not
-price.  Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
-  To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights.  Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
-
-  For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received.  You must make sure that they, too, receive
-or can get the source code.  And you must show them these 

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: Remove HideTitle extension

2017-12-13 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/397802 )

Change subject: Remove HideTitle extension
..


Remove HideTitle extension

Change-Id: Iebb13c55d4ed47403552c0743ee7380c2d73f915
ERM: #8163
---
D HideTitle/COPYING
D HideTitle/HideTitle.class.php
D HideTitle/HideTitle.setup.php
D HideTitle/extension.json
D HideTitle/i18n/ast.json
D HideTitle/i18n/ba.json
D HideTitle/i18n/be-tarask.json
D HideTitle/i18n/bn.json
D HideTitle/i18n/br.json
D HideTitle/i18n/de.json
D HideTitle/i18n/en.json
D HideTitle/i18n/es.json
D HideTitle/i18n/fa.json
D HideTitle/i18n/fr.json
D HideTitle/i18n/gl.json
D HideTitle/i18n/he.json
D HideTitle/i18n/hi.json
D HideTitle/i18n/ia.json
D HideTitle/i18n/id.json
D HideTitle/i18n/it.json
D HideTitle/i18n/ja.json
D HideTitle/i18n/ko.json
D HideTitle/i18n/ksh.json
D HideTitle/i18n/lb.json
D HideTitle/i18n/lij.json
D HideTitle/i18n/lt.json
D HideTitle/i18n/mg.json
D HideTitle/i18n/mk.json
D HideTitle/i18n/nb.json
D HideTitle/i18n/nl.json
D HideTitle/i18n/oc.json
D HideTitle/i18n/pl.json
D HideTitle/i18n/pms.json
D HideTitle/i18n/pt-br.json
D HideTitle/i18n/pt.json
D HideTitle/i18n/qqq.json
D HideTitle/i18n/roa-tara.json
D HideTitle/i18n/ru.json
D HideTitle/i18n/sl.json
D HideTitle/i18n/sr-ec.json
D HideTitle/i18n/sr-el.json
D HideTitle/i18n/sv.json
D HideTitle/i18n/uk.json
D HideTitle/i18n/zh-hans.json
D HideTitle/i18n/zh-hant.json
D HideTitle/languages/HideTitle.i18n.magic.php
D HideTitle/resources/bluespice.hideTitle.css
47 files changed, 0 insertions(+), 1,158 deletions(-)

Approvals:
  Ljonka: Verified; Looks good to me, approved
  Raimond Spekking: Looks good to me, but someone else must approve



diff --git a/HideTitle/COPYING b/HideTitle/COPYING
deleted file mode 100644
index e72bfdd..000
--- a/HideTitle/COPYING
+++ /dev/null
@@ -1,674 +0,0 @@
-GNU GENERAL PUBLIC LICENSE
-   Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc. 
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-Preamble
-
-  The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
-
-  The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works.  By contrast,
-the GNU General Public License is intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users.  We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors.  You can apply it to
-your programs, too.
-
-  When we speak of free software, we are referring to freedom, not
-price.  Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
-  To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights.  Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
-
-  For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received.  You must make sure that they, too, receive
-or can get the source code.  And you must show them these terms so they
-know their rights.
-
-  Developers that use the GNU GPL protect your rights with two steps:
-(1) assert copyright on the software, and (2) offer you this License
-giving you legal permission to copy, distribute and/or modify it.
-
-  For the developers' and authors' protection, the GPL clearly explains
-that there is no warranty for this free software.  For both users' and
-authors' sake, the GPL requires that modified versions be marked as
-changed, so that their problems will not be attributed erroneously to
-authors of previous versions.
-
-  Some devices are designed to deny users access to install or run
-modified versions of the software inside them, although the manufacturer
-can do so.  This is fundamentally incompatible with the aim of
-protecting users' freedom to change the software.  The systematic
-pattern of such abuse occurs in the area of products for individuals to
-use, which is precisely where it is most unacceptable.  Therefore, we
-have designed this version of the GPL to prohibit the practice for those
-products.  If such problems arise substantially in other domains, we
-stand ready to extend thi

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: Remove HideTitle registration

2017-12-13 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/397801 )

Change subject: Remove HideTitle registration
..


Remove HideTitle registration

Change-Id: I388e4c87906bfa6fe477365f2b7192756ef9929e
ERM: #8163
---
M BlueSpiceExtensions.default.php
1 file changed, 0 insertions(+), 1 deletion(-)

Approvals:
  Ljonka: Verified; Looks good to me, approved
  jenkins-bot: Checked



diff --git a/BlueSpiceExtensions.default.php b/BlueSpiceExtensions.default.php
index e4dce05..75bdee5 100644
--- a/BlueSpiceExtensions.default.php
+++ b/BlueSpiceExtensions.default.php
@@ -2,6 +2,5 @@
 //Other Extensions
 require_once( __DIR__."/AboutBlueSpice/AboutBlueSpice.setup.php" );
 require_once( __DIR__."/Flexiskin/Flexiskin.setup.php" );
-require_once( __DIR__."/HideTitle/HideTitle.setup.php" );
 require_once( __DIR__."/InsertCategory/InsertCategory.setup.php" );
 require_once( __DIR__."/NamespaceCss/NamespaceCss.setup.php" );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I388e4c87906bfa6fe477365f2b7192756ef9929e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: ItSpiderman 
Gerrit-Reviewer: Ljonka 
Gerrit-Reviewer: Mglaser 
Gerrit-Reviewer: Pwirth 
Gerrit-Reviewer: Raimond Spekking 
Gerrit-Reviewer: Robert Vogel 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: Remove NamespaceCss extension

2017-12-13 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/397792 )

Change subject: Remove NamespaceCss extension
..


Remove NamespaceCss extension

Change-Id: I155a37d6c660a23196fd57a180a0f850acaf5dbc
ERM: #8162
---
D NamespaceCss/COPYING
D NamespaceCss/NamespaceCss.class.php
D NamespaceCss/NamespaceCss.setup.php
D NamespaceCss/extension.json
D NamespaceCss/i18n/ar.json
D NamespaceCss/i18n/ast.json
D NamespaceCss/i18n/ba.json
D NamespaceCss/i18n/be-tarask.json
D NamespaceCss/i18n/br.json
D NamespaceCss/i18n/de.json
D NamespaceCss/i18n/diq.json
D NamespaceCss/i18n/el.json
D NamespaceCss/i18n/en.json
D NamespaceCss/i18n/es.json
D NamespaceCss/i18n/eu.json
D NamespaceCss/i18n/fa.json
D NamespaceCss/i18n/fr.json
D NamespaceCss/i18n/gl.json
D NamespaceCss/i18n/hu.json
D NamespaceCss/i18n/it.json
D NamespaceCss/i18n/ja.json
D NamespaceCss/i18n/ko.json
D NamespaceCss/i18n/ksh.json
D NamespaceCss/i18n/lij.json
D NamespaceCss/i18n/mg.json
D NamespaceCss/i18n/mk.json
D NamespaceCss/i18n/nb.json
D NamespaceCss/i18n/nl.json
D NamespaceCss/i18n/oc.json
D NamespaceCss/i18n/pt-br.json
D NamespaceCss/i18n/pt.json
D NamespaceCss/i18n/qqq.json
D NamespaceCss/i18n/roa-tara.json
D NamespaceCss/i18n/ru.json
D NamespaceCss/i18n/sl.json
D NamespaceCss/i18n/sv.json
D NamespaceCss/i18n/uk.json
D NamespaceCss/i18n/wuu.json
D NamespaceCss/i18n/zh-hans.json
D NamespaceCss/i18n/zh-hant.json
40 files changed, 0 insertions(+), 1,059 deletions(-)

Approvals:
  Ljonka: Verified; Looks good to me, approved
  Raimond Spekking: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/NamespaceCss/COPYING b/NamespaceCss/COPYING
deleted file mode 100644
index e72bfdd..000
--- a/NamespaceCss/COPYING
+++ /dev/null
@@ -1,674 +0,0 @@
-GNU GENERAL PUBLIC LICENSE
-   Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc. 
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-Preamble
-
-  The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
-
-  The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works.  By contrast,
-the GNU General Public License is intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users.  We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors.  You can apply it to
-your programs, too.
-
-  When we speak of free software, we are referring to freedom, not
-price.  Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
-  To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights.  Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
-
-  For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received.  You must make sure that they, too, receive
-or can get the source code.  And you must show them these terms so they
-know their rights.
-
-  Developers that use the GNU GPL protect your rights with two steps:
-(1) assert copyright on the software, and (2) offer you this License
-giving you legal permission to copy, distribute and/or modify it.
-
-  For the developers' and authors' protection, the GPL clearly explains
-that there is no warranty for this free software.  For both users' and
-authors' sake, the GPL requires that modified versions be marked as
-changed, so that their problems will not be attributed erroneously to
-authors of previous versions.
-
-  Some devices are designed to deny users access to install or run
-modified versions of the software inside them, although the manufacturer
-can do so.  This is fundamentally incompatible with the aim of
-protecting users' freedom to change the software.  The systematic
-pattern of such abuse occurs in the area of products for individuals to
-use, which is precisely where it is most unacceptable.  Therefore, we
-have designed this version of the GPL to prohibit the practice for those
-products.  If such problems arise substantially in other domains, we
-stand ready to extend this provision to those domains in future versions
-of the GP

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: Remove NamespaceCss registration

2017-12-13 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/397791 )

Change subject: Remove NamespaceCss registration
..


Remove NamespaceCss registration

Change-Id: I2b6fe151d495f189c8692568845eaaefe368516e
ERM: #8162
---
M BlueSpiceExtensions.default.php
1 file changed, 0 insertions(+), 1 deletion(-)

Approvals:
  Ljonka: Verified; Looks good to me, approved
  jenkins-bot: Checked



diff --git a/BlueSpiceExtensions.default.php b/BlueSpiceExtensions.default.php
index e4dce05..755b27a 100644
--- a/BlueSpiceExtensions.default.php
+++ b/BlueSpiceExtensions.default.php
@@ -4,4 +4,3 @@
 require_once( __DIR__."/Flexiskin/Flexiskin.setup.php" );
 require_once( __DIR__."/HideTitle/HideTitle.setup.php" );
 require_once( __DIR__."/InsertCategory/InsertCategory.setup.php" );
-require_once( __DIR__."/NamespaceCss/NamespaceCss.setup.php" );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I2b6fe151d495f189c8692568845eaaefe368516e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: ItSpiderman 
Gerrit-Reviewer: Ljonka 
Gerrit-Reviewer: Mglaser 
Gerrit-Reviewer: Pwirth 
Gerrit-Reviewer: Raimond Spekking 
Gerrit-Reviewer: Robert Vogel 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: Remove AboutBlueSpice extension

2017-12-13 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/397782 )

Change subject: Remove AboutBlueSpice extension
..


Remove AboutBlueSpice extension

Change-Id: I013151686f92986a5d647418e4ec14a34fd71a1f
ERM: #8161
---
D AboutBlueSpice/AboutBlueSpice.class.php
D AboutBlueSpice/AboutBlueSpice.setup.php
D AboutBlueSpice/COPYING
D AboutBlueSpice/extension.json
D AboutBlueSpice/i18n/ar.json
D AboutBlueSpice/i18n/ast.json
D AboutBlueSpice/i18n/atj.json
D AboutBlueSpice/i18n/ba.json
D AboutBlueSpice/i18n/be-tarask.json
D AboutBlueSpice/i18n/br.json
D AboutBlueSpice/i18n/cs.json
D AboutBlueSpice/i18n/de.json
D AboutBlueSpice/i18n/en.json
D AboutBlueSpice/i18n/es.json
D AboutBlueSpice/i18n/eu.json
D AboutBlueSpice/i18n/fi.json
D AboutBlueSpice/i18n/fr.json
D AboutBlueSpice/i18n/gl.json
D AboutBlueSpice/i18n/he.json
D AboutBlueSpice/i18n/hu.json
D AboutBlueSpice/i18n/it.json
D AboutBlueSpice/i18n/ja.json
D AboutBlueSpice/i18n/ko.json
D AboutBlueSpice/i18n/ksh.json
D AboutBlueSpice/i18n/lb.json
D AboutBlueSpice/i18n/lij.json
D AboutBlueSpice/i18n/lt.json
D AboutBlueSpice/i18n/mk.json
D AboutBlueSpice/i18n/nb.json
D AboutBlueSpice/i18n/nl.json
D AboutBlueSpice/i18n/pam.json
D AboutBlueSpice/i18n/pl.json
D AboutBlueSpice/i18n/ps.json
D AboutBlueSpice/i18n/pt-br.json
D AboutBlueSpice/i18n/pt.json
D AboutBlueSpice/i18n/qqq.json
D AboutBlueSpice/i18n/roa-tara.json
D AboutBlueSpice/i18n/ru.json
D AboutBlueSpice/i18n/sd.json
D AboutBlueSpice/i18n/sv.json
D AboutBlueSpice/i18n/te.json
D AboutBlueSpice/i18n/tl.json
D AboutBlueSpice/i18n/uk.json
D AboutBlueSpice/i18n/ur.json
D AboutBlueSpice/i18n/zh-hans.json
D AboutBlueSpice/includes/specials/SpecialAboutBlueSpice.alias.php
D AboutBlueSpice/includes/specials/SpecialAboutBlueSpice.class.php
D AboutBlueSpice/resources/bluespice.aboutbluespice.css
48 files changed, 0 insertions(+), 1,456 deletions(-)

Approvals:
  Ljonka: Verified; Looks good to me, approved
  Raimond Spekking: Looks good to me, but someone else must approve



diff --git a/AboutBlueSpice/AboutBlueSpice.class.php 
b/AboutBlueSpice/AboutBlueSpice.class.php
deleted file mode 100644
index bf976b5..000
--- a/AboutBlueSpice/AboutBlueSpice.class.php
+++ /dev/null
@@ -1,133 +0,0 @@
-http://www.gnu.org/copyleft/gpl.html
- *
- * For further information visit http://www.bluespice.com
- *
- * @author Markus Glaser 
- * @author Leonid Verhovskij 
- * @packageBlueSpice_Extensions
- * @subpackage AboutBlueSpice
- * @copyright  Copyright (C) 2016 Hallo Welt! GmbH, All rights reserved.
- * @licensehttp://www.gnu.org/copyleft/gpl.html GNU Public License v3
- * @filesource
- */
-
-class AboutBlueSpice extends BsExtensionMW {
-
-   protected function initExt() {
-   wfProfileIn( 'BS::'.__METHOD__ );
-   // Hooks
-   $this->setHook( 'BeforePageDisplay' );
-   $this->setHook( 'BSWikiAdminMenuItems' );
-   $this->setHook( 'BSTopMenuBarCustomizerRegisterNavigationSites' 
);
-   $this->setHook( 'SkinBuildSidebar' );
-
-   BsConfig::registerVar( 'MW::AboutBlueSpice::ShowMenuLinks', 
true, BsConfig::LEVEL_PUBLIC | BsConfig::TYPE_BOOL, 
'bs-aboutbluespice-show-menu-links', 'toggle' );
-
-   $this->mCore->registerPermission( 
'aboutbluespice-viewspecialpage', array('user'), array( 'type' => 'global' ) );
-
-   wfProfileOut( 'BS::'.__METHOD__ );
-   }
-
-   /**
-*
-* @param OutputPage $out
-* @param Skin $skin
-* @return boolean
-*/
-   public static function onBeforePageDisplay( &$out, &$skin ) {
-   if ( BsConfig::get( 'MW::AboutBlueSpice::ShowMenuLinks' )) {
-   $out->addModules( 'ext.bluespice.aboutbluespice' );
-   }
-   return true;
-   }
-
-   /**
-* Returns a list item with a link to the "About BlueSpice" special page
-* @param array $aOutSortable Indexed list of menu items. Add item in 
HTML form.
-* @param \User The user in which context the menu is rendered
-* @return string Link to the "About BlueSpice" special page
-*/
-   public static function onBSWikiAdminMenuItems( &$aOutSortable, $oUser ) 
{
-   if ( !BsConfig::get( 'MW::AboutBlueSpice::ShowMenuLinks' )) {
-   return true;
-   }
-   if( !$oUser->isAllowed( 'aboutbluespice-viewspecialpage' ) ) {
-   return true;
-   }
-   $oSpecialPage = SpecialPage::getTitleFor( 'AboutBlueSpice' );
-   $sLink = Html::element(
-   'a',
-   array (
-   'id' => 'bs-admin-aboutbluespice',
-   'href' => $oSpecialPage->getLocalURL(),
-   't

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: Remove AboutBlueSpice registration

2017-12-13 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/397781 )

Change subject: Remove AboutBlueSpice registration
..


Remove AboutBlueSpice registration

Change-Id: I08a0ba324b7e36c14064fd21c26361904c744cee
ERM: #8161
---
M BlueSpiceExtensions.default.php
1 file changed, 0 insertions(+), 1 deletion(-)

Approvals:
  Ljonka: Verified; Looks good to me, approved
  jenkins-bot: Checked



diff --git a/BlueSpiceExtensions.default.php b/BlueSpiceExtensions.default.php
index e4dce05..613efd1 100644
--- a/BlueSpiceExtensions.default.php
+++ b/BlueSpiceExtensions.default.php
@@ -1,6 +1,5 @@
 https://gerrit.wikimedia.org/r/397781
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I08a0ba324b7e36c14064fd21c26361904c744cee
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: ItSpiderman 
Gerrit-Reviewer: Ljonka 
Gerrit-Reviewer: Mglaser 
Gerrit-Reviewer: Pwirth 
Gerrit-Reviewer: Raimond Spekking 
Gerrit-Reviewer: Robert Vogel 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceInsertCategory[master]: Initial commit

2017-12-13 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/397816 )

Change subject: Initial commit
..


Initial commit

Change-Id: I050d151d6d383130dd96d24e74bf5fedc33eda5f
ERM: #8164
---
A .gitignore
A .gitreview
A CODE_OF_CONDUCT.md
A COPYING
A InsertCategory.class.php
A composer.json
A extension.json
A i18n/ar.json
A i18n/ast.json
A i18n/ba.json
A i18n/bcc.json
A i18n/bg.json
A i18n/bgn.json
A i18n/bn.json
A i18n/br.json
A i18n/ca.json
A i18n/ce.json
A i18n/ckb.json
A i18n/cv.json
A i18n/de-formal.json
A i18n/de.json
A i18n/diq.json
A i18n/en.json
A i18n/es.json
A i18n/eu.json
A i18n/fa.json
A i18n/fr.json
A i18n/fy.json
A i18n/ga.json
A i18n/gl.json
A i18n/he.json
A i18n/hu.json
A i18n/ia.json
A i18n/id.json
A i18n/it.json
A i18n/ja.json
A i18n/jv.json
A i18n/kab.json
A i18n/ko.json
A i18n/ksh.json
A i18n/lb.json
A i18n/lki.json
A i18n/lt.json
A i18n/lv.json
A i18n/mk.json
A i18n/nb.json
A i18n/nds-nl.json
A i18n/nl.json
A i18n/oc.json
A i18n/pl.json
A i18n/pt-br.json
A i18n/pt.json
A i18n/qqq.json
A i18n/roa-tara.json
A i18n/ru.json
A i18n/sd.json
A i18n/sl.json
A i18n/sv.json
A i18n/tcy.json
A i18n/tg-cyrl.json
A i18n/tr.json
A i18n/uk.json
A i18n/yi.json
A i18n/zh-hans.json
A i18n/zh-hant.json
A resources/BS.InsertCategory/AsyncCategoryTreePanel.js
A resources/BS.InsertCategory/Dialog.js
A resources/bluespice.insertCategory.css
A resources/bluespice.insertCategory.js
A resources/bluespice.insertCategory.uploadPanelIntegration.js
A resources/images/button_insert-category-16px.png
A resources/images/button_insert-category.png
72 files changed, 2,117 insertions(+), 0 deletions(-)

Approvals:
  Ljonka: Verified; Looks good to me, approved
  Raimond Spekking: Looks good to me, but someone else must approve



diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000..7b84ef7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+*~
+*.kate-swp
+*.swp
+node_modules/**
+vendor/**
+
+composer.lock
+composer.phar
diff --git a/.gitreview b/.gitreview
new file mode 100644
index 000..ec75e69
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,5 @@
+[gerrit]
+host=gerrit.wikimedia.org
+port=29418
+project=mediawiki/extensions/BlueSpiceInsertCategory.git
+track=1
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 000..d8e5d08
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1 @@
+The development of this software is covered by a [Code of 
Conduct](https://www.mediawiki.org/wiki/Code_of_Conduct).
diff --git a/COPYING b/COPYING
new file mode 100644
index 000..e72bfdd
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,674 @@
+GNU GENERAL PUBLIC LICENSE
+   Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. 
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+Preamble
+
+  The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+  The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works.  By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.  We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors.  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+  To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights.  Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received.  You must make sure that they, too, receive
+or can get the source code.  And you must show them these terms so they
+know their rights.
+
+  Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+  For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software.  For both use

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceHideTitle[master]: Initial commit

2017-12-13 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/397807 )

Change subject: Initial commit
..


Initial commit

Change-Id: I8221b4748999dd1b2a460727ccc93fddfab277f3
ERM: #8163
---
A .gitignore
A .gitreview
A CODE_OF_CONDUCT.md
A COPYING
A HideTitle.class.php
A composer.json
A extension.json
A i18n/ast.json
A i18n/ba.json
A i18n/be-tarask.json
A i18n/bn.json
A i18n/br.json
A i18n/de.json
A i18n/en.json
A i18n/es.json
A i18n/fa.json
A i18n/fr.json
A i18n/gl.json
A i18n/he.json
A i18n/hi.json
A i18n/ia.json
A i18n/id.json
A i18n/it.json
A i18n/ja.json
A i18n/ko.json
A i18n/ksh.json
A i18n/lb.json
A i18n/lij.json
A i18n/lt.json
A i18n/mg.json
A i18n/mk.json
A i18n/nb.json
A i18n/nl.json
A i18n/oc.json
A i18n/pl.json
A i18n/pms.json
A i18n/pt-br.json
A i18n/pt.json
A i18n/qqq.json
A i18n/roa-tara.json
A i18n/ru.json
A i18n/sl.json
A i18n/sr-ec.json
A i18n/sr-el.json
A i18n/sv.json
A i18n/uk.json
A i18n/zh-hans.json
A i18n/zh-hant.json
A languages/HideTitle.i18n.magic.php
A resources/bluespice.hideTitle.css
50 files changed, 1,183 insertions(+), 0 deletions(-)

Approvals:
  Ljonka: Verified; Looks good to me, approved
  Raimond Spekking: Looks good to me, but someone else must approve



diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000..7b84ef7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+*~
+*.kate-swp
+*.swp
+node_modules/**
+vendor/**
+
+composer.lock
+composer.phar
diff --git a/.gitreview b/.gitreview
new file mode 100644
index 000..165c43c
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,5 @@
+[gerrit]
+host=gerrit.wikimedia.org
+port=29418
+project=mediawiki/extensions/BlueSpiceHideTitle.git
+track=1
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 000..d8e5d08
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1 @@
+The development of this software is covered by a [Code of 
Conduct](https://www.mediawiki.org/wiki/Code_of_Conduct).
diff --git a/COPYING b/COPYING
new file mode 100644
index 000..e72bfdd
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,674 @@
+GNU GENERAL PUBLIC LICENSE
+   Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. 
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+Preamble
+
+  The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+  The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works.  By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.  We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors.  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+  To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights.  Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received.  You must make sure that they, too, receive
+or can get the source code.  And you must show them these terms so they
+know their rights.
+
+  Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+  For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software.  For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+  Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so.  This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software.  The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, whic

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceNamespaceCSS[master]: Initial commit

2017-12-13 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/397800 )

Change subject: Initial commit
..


Initial commit

Note the name change:
BlueSpiceExtensions/NamespaceCss -> BlueSpiceNamespaceCSS

Change-Id: I9677c085fcc66b5c4386d31db3267183102c67d7
ERM: #8162
---
A .gitignore
A .gitreview
A CODE_OF_CONDUCT.md
A COPYING
A NamespaceCss.class.php
A composer.json
A extension.json
A i18n/ar.json
A i18n/ast.json
A i18n/ba.json
A i18n/be-tarask.json
A i18n/br.json
A i18n/de.json
A i18n/diq.json
A i18n/el.json
A i18n/en.json
A i18n/es.json
A i18n/eu.json
A i18n/fa.json
A i18n/fr.json
A i18n/gl.json
A i18n/hu.json
A i18n/it.json
A i18n/ja.json
A i18n/ko.json
A i18n/ksh.json
A i18n/lij.json
A i18n/mg.json
A i18n/mk.json
A i18n/nb.json
A i18n/nl.json
A i18n/oc.json
A i18n/pt-br.json
A i18n/pt.json
A i18n/qqq.json
A i18n/roa-tara.json
A i18n/ru.json
A i18n/sl.json
A i18n/sv.json
A i18n/uk.json
A i18n/wuu.json
A i18n/zh-hans.json
A i18n/zh-hant.json
43 files changed, 1,084 insertions(+), 0 deletions(-)

Approvals:
  Ljonka: Verified; Looks good to me, approved
  Raimond Spekking: Looks good to me, but someone else must approve



diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000..7b84ef7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+*~
+*.kate-swp
+*.swp
+node_modules/**
+vendor/**
+
+composer.lock
+composer.phar
diff --git a/.gitreview b/.gitreview
new file mode 100644
index 000..3ad6e13
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,5 @@
+[gerrit]
+host=gerrit.wikimedia.org
+port=29418
+project=mediawiki/extensions/BlueSpiceNamespaceCSS.git
+track=1
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 000..d8e5d08
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1 @@
+The development of this software is covered by a [Code of 
Conduct](https://www.mediawiki.org/wiki/Code_of_Conduct).
diff --git a/COPYING b/COPYING
new file mode 100644
index 000..e72bfdd
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,674 @@
+GNU GENERAL PUBLIC LICENSE
+   Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. 
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+Preamble
+
+  The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+  The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works.  By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.  We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors.  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+  To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights.  Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received.  You must make sure that they, too, receive
+or can get the source code.  And you must show them these terms so they
+know their rights.
+
+  Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+  For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software.  For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+  Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so.  This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software.  The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable.  Therefore, we
+have

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceAbout[master]: Initial commit

2017-12-13 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/397789 )

Change subject: Initial commit
..


Initial commit

Note name change from
BlueSpiceExtensions/AboutBlueSpice -> BlueSpiceAbout

Change-Id: I10ba22849400224f672827104e353e331d2663a0
ERM: #8161
---
A .gitignore
A .gitreview
A BlueSpiceAbout.class.php
A CODE_OF_CONDUCT.md
A COPYING
A composer.json
A extension.json
A i18n/ar.json
A i18n/ast.json
A i18n/atj.json
A i18n/ba.json
A i18n/be-tarask.json
A i18n/br.json
A i18n/cs.json
A i18n/de.json
A i18n/en.json
A i18n/es.json
A i18n/eu.json
A i18n/fi.json
A i18n/fr.json
A i18n/gl.json
A i18n/he.json
A i18n/hu.json
A i18n/it.json
A i18n/ja.json
A i18n/ko.json
A i18n/ksh.json
A i18n/lb.json
A i18n/lij.json
A i18n/lt.json
A i18n/mk.json
A i18n/nb.json
A i18n/nl.json
A i18n/pam.json
A i18n/pl.json
A i18n/ps.json
A i18n/pt-br.json
A i18n/pt.json
A i18n/qqq.json
A i18n/roa-tara.json
A i18n/ru.json
A i18n/sd.json
A i18n/sv.json
A i18n/te.json
A i18n/tl.json
A i18n/uk.json
A i18n/ur.json
A i18n/zh-hans.json
A includes/specials/SpecialBlueSpiceAbout.alias.php
A includes/specials/SpecialBlueSpiceAbout.class.php
A resources/bluespice.bluespiceabout.css
51 files changed, 1,477 insertions(+), 0 deletions(-)

Approvals:
  Ljonka: Verified; Looks good to me, approved
  Raimond Spekking: Looks good to me, but someone else must approve



diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000..7b84ef7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+*~
+*.kate-swp
+*.swp
+node_modules/**
+vendor/**
+
+composer.lock
+composer.phar
diff --git a/.gitreview b/.gitreview
new file mode 100644
index 000..bbb8dc8
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,5 @@
+[gerrit]
+host=gerrit.wikimedia.org
+port=29418
+project=mediawiki/extensions/BlueSpiceAbout.git
+track=1
diff --git a/BlueSpiceAbout.class.php b/BlueSpiceAbout.class.php
new file mode 100644
index 000..ece73b7
--- /dev/null
+++ b/BlueSpiceAbout.class.php
@@ -0,0 +1,132 @@
+http://www.gnu.org/copyleft/gpl.html
+ *
+ * For further information visit http://www.bluespice.com
+ *
+ * @author Markus Glaser 
+ * @author Leonid Verhovskij 
+ * @packageBlueSpiceAbout
+ * @copyright  Copyright (C) 2016 Hallo Welt! GmbH, All rights reserved.
+ * @licensehttp://www.gnu.org/copyleft/gpl.html GNU Public License v3
+ * @filesource
+ */
+
+class BlueSpiceAbout extends BsExtensionMW {
+
+   protected function initExt() {
+   wfProfileIn( 'BS::'.__METHOD__ );
+   // Hooks
+   $this->setHook( 'BeforePageDisplay' );
+   $this->setHook( 'BSWikiAdminMenuItems' );
+   $this->setHook( 'BSTopMenuBarCustomizerRegisterNavigationSites' 
);
+   $this->setHook( 'SkinBuildSidebar' );
+
+   BsConfig::registerVar( 'MW::BlueSpiceAbout::ShowMenuLinks', 
true, BsConfig::LEVEL_PUBLIC | BsConfig::TYPE_BOOL, 
'bs-bluespiceabout-show-menu-links', 'toggle' );
+
+   $this->mCore->registerPermission( 
'bluespiceabout-viewspecialpage', array('user'), array( 'type' => 'global' ) );
+
+   wfProfileOut( 'BS::'.__METHOD__ );
+   }
+
+   /**
+*
+* @param OutputPage $out
+* @param Skin $skin
+* @return boolean
+*/
+   public static function onBeforePageDisplay( &$out, &$skin ) {
+   if ( BsConfig::get( 'MW::BlueSpiceAbout::ShowMenuLinks' )) {
+   $out->addModules( 'ext.bluespice.bluespiceabout' );
+   }
+   return true;
+   }
+
+   /**
+* Returns a list item with a link to the "BlueSpice About" special page
+* @param array $aOutSortable Indexed list of menu items. Add item in 
HTML form.
+* @param \User The user in which context the menu is rendered
+* @return string Link to the "BlueSpice About" special page
+*/
+   public static function onBSWikiAdminMenuItems( &$aOutSortable, $oUser ) 
{
+   if ( !BsConfig::get( 'MW::BlueSpiceAbout::ShowMenuLinks' )) {
+   return true;
+   }
+   if( !$oUser->isAllowed( 'bluespiceabout-viewspecialpage' ) ) {
+   return true;
+   }
+   $oSpecialPage = SpecialPage::getTitleFor( 'BlueSpiceAbout' );
+   $sLink = Html::element(
+   'a',
+   array (
+   'id' => 'bs-admin-bluespiceabout',
+   'href' => $oSpecialPage->getLocalURL(),
+   'title' => wfMessage( 
'bs-bluespiceabout-about-bluespice' )->plain(),
+   'class' => 'bs-admin-link'
+   ),
+   wfMessage( 'bs-bluespiceabout-about-bluespice' 
)->plain()
+   );
+ 

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpicePagesVisited[master]: remove unused hook call to prevent error

2017-12-12 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/397769 )

Change subject: remove unused hook call to prevent error
..

remove unused hook call to prevent error

Change-Id: I93b90321057b32d768333860f5f540be1e086f41
---
M extension.json
1 file changed, 1 insertion(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpicePagesVisited 
refs/changes/69/397769/1

diff --git a/extension.json b/extension.json
index 3984fdb..0b7bd5a 100644
--- a/extension.json
+++ b/extension.json
@@ -33,8 +33,7 @@

"\\BlueSpice\\PagesVisited\\Hook\\GetPreferences\\AddWidgetLimit::callback",

"\\BlueSpice\\PagesVisited\\Hook\\GetPreferences\\AddWidgetNS::callback",

"\\BlueSpice\\PagesVisited\\Hook\\GetPreferences\\AddWidgetSortOdr::callback"
-   ],
-   "UnitTestsList": "PagesVisited::onUnitTestsList"
+   ]
},
"load_composer_autoloader": true,
"manifest_version": 1

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I93b90321057b32d768333860f5f540be1e086f41
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpicePagesVisited
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpicePageAccess[master]: Initial commit

2017-12-08 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/395935 )

Change subject: Initial commit
..


Initial commit

Change-Id: Ib42017c990ab2a0b80c33d9629ae3d23f0089795
---
A .gitignore
A .gitreview
A CODE_OF_CONDUCT.md
A COPYING
A PageAccess.class.php
A THIRD_PARTY_LICENSES.md
A composer.json
A doc/Hooks.txt
A extension.json
A i18n/ar.json
A i18n/ba.json
A i18n/bn.json
A i18n/br.json
A i18n/ca.json
A i18n/cs.json
A i18n/de-formal.json
A i18n/de.json
A i18n/dty.json
A i18n/en.json
A i18n/es.json
A i18n/eu.json
A i18n/fa.json
A i18n/fr.json
A i18n/gl.json
A i18n/hi.json
A i18n/hu.json
A i18n/ia.json
A i18n/id.json
A i18n/it.json
A i18n/ja.json
A i18n/ko.json
A i18n/ksh.json
A i18n/lb.json
A i18n/lt.json
A i18n/lv.json
A i18n/mk.json
A i18n/mr.json
A i18n/nb.json
A i18n/nl.json
A i18n/oc.json
A i18n/pl.json
A i18n/pt-br.json
A i18n/pt.json
A i18n/qqq.json
A i18n/ru.json
A i18n/sl.json
A i18n/sv.json
A i18n/tcy.json
A i18n/uk.json
A i18n/yi.json
A i18n/yue.json
A i18n/zh-hans.json
A includes/api/BSApiPageAccessStore.php
A includes/specials/SpecialPageAccess.alias.php
A includes/specials/SpecialPageAccess.class.php
A resources/BS.PageAccess/panel/Manager.js
A resources/ext.bluespice.pageaccess.manager.js
A tests/phpunit/BSApiPageAccessStoreTest.php
58 files changed, 1,998 insertions(+), 0 deletions(-)

Approvals:
  Pwirth: Looks good to me, approved
  Ljonka: Verified; Looks good to me, approved



diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000..db8a779
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+/node_modules
+/vendor
+/composer.lock
diff --git a/.gitreview b/.gitreview
new file mode 100644
index 000..05add82
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,5 @@
+[gerrit]
+host=gerrit.wikimedia.org
+port=29418
+project=mediawiki/extensions/BlueSpicePageAccess.git
+track=1
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 000..d8e5d08
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1 @@
+The development of this software is covered by a [Code of 
Conduct](https://www.mediawiki.org/wiki/Code_of_Conduct).
diff --git a/COPYING b/COPYING
new file mode 100644
index 000..e72bfdd
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,674 @@
+GNU GENERAL PUBLIC LICENSE
+   Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. 
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+Preamble
+
+  The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+  The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works.  By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.  We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors.  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+  To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights.  Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received.  You must make sure that they, too, receive
+or can get the source code.  And you must show them these terms so they
+know their rights.
+
+  Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+  For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software.  For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+  Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so.  This is fundamentally incompat

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: Remove InsertLink registration

2017-12-07 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/396053 )

Change subject: Remove InsertLink registration
..


Remove InsertLink registration

Change-Id: I413ee08ffc94d01a5e296620adba5b417b81117d
ERM: #8166
---
M BlueSpiceExtensions.default.php
1 file changed, 0 insertions(+), 1 deletion(-)

Approvals:
  Ljonka: Verified; Looks good to me, approved
  jenkins-bot: Checked



diff --git a/BlueSpiceExtensions.default.php b/BlueSpiceExtensions.default.php
index 6f9cadb..e4dce05 100644
--- a/BlueSpiceExtensions.default.php
+++ b/BlueSpiceExtensions.default.php
@@ -4,5 +4,4 @@
 require_once( __DIR__."/Flexiskin/Flexiskin.setup.php" );
 require_once( __DIR__."/HideTitle/HideTitle.setup.php" );
 require_once( __DIR__."/InsertCategory/InsertCategory.setup.php" );
-require_once( __DIR__."/InsertLink/InsertLink.setup.php" );
 require_once( __DIR__."/NamespaceCss/NamespaceCss.setup.php" );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I413ee08ffc94d01a5e296620adba5b417b81117d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: ItSpiderman 
Gerrit-Reviewer: Ljonka 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceInsertMagic[master]: Fix syntax error

2017-12-07 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/396045 )

Change subject: Fix syntax error
..


Fix syntax error

Change-Id: I0e5410c43b50927c71a8e466996f3650d98a82da
---
M composer.json
1 file changed, 1 insertion(+), 1 deletion(-)

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



diff --git a/composer.json b/composer.json
index 796be15..018bf12 100644
--- a/composer.json
+++ b/composer.json
@@ -5,7 +5,7 @@
"license": "GPL-3.0",
"require": {
"composer/installers": "~1.0"
-   }
+   },
"autoload": {
"psr-4": {
}

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I0e5410c43b50927c71a8e466996f3650d98a82da
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceInsertMagic
Gerrit-Branch: master
Gerrit-Owner: ItSpiderman 
Gerrit-Reviewer: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceInsertLink[master]: fix compoer.json syntax

2017-12-07 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/396043 )

Change subject: fix compoer.json syntax
..

fix compoer.json syntax

Change-Id: I006e1fbe4f8502fcbe7254954f5d3947c4888260
---
M composer.json
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceInsertLink 
refs/changes/43/396043/1

diff --git a/composer.json b/composer.json
index c9b839e..27e4ea2 100644
--- a/composer.json
+++ b/composer.json
@@ -5,7 +5,7 @@
"license": "GPL-3.0",
"require": {
"composer/installers": "~1.0"
-   }
+   },
"autoload": {
"psr-4": {
}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I006e1fbe4f8502fcbe7254954f5d3947c4888260
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceInsertLink
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceInsertFile[master]: Fix syntax error

2017-12-07 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/396042 )

Change subject: Fix syntax error
..


Fix syntax error

Change-Id: Icd7952ef4455282bd024908b81ec1298ad88d84e
---
M composer.json
1 file changed, 1 insertion(+), 1 deletion(-)

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



diff --git a/composer.json b/composer.json
index 0a2f37d..fce3012 100644
--- a/composer.json
+++ b/composer.json
@@ -5,7 +5,7 @@
"license": "GPL-3.0",
"require": {
"composer/installers": "~1.0"
-   }
+   },
"autoload": {
"psr-4": {
}

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Icd7952ef4455282bd024908b81ec1298ad88d84e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceInsertFile
Gerrit-Branch: master
Gerrit-Owner: ItSpiderman 
Gerrit-Reviewer: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceUEModulePDF[master]: fix composer.json syntax

2017-12-07 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/396041 )

Change subject: fix composer.json syntax
..

fix composer.json syntax

Change-Id: I0c1a1c6a223fbe58b02bec9cccd499615c285de0
---
M composer.json
1 file changed, 0 insertions(+), 4 deletions(-)


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

diff --git a/composer.json b/composer.json
index 7376d14..f799580 100644
--- a/composer.json
+++ b/composer.json
@@ -6,8 +6,4 @@
"require": {
"composer/installers": "~1.0"
}
-   "autoload": {
-   "psr-4": {
-   }
-   }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0c1a1c6a223fbe58b02bec9cccd499615c285de0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceUEModulePDF
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceUniversalExport[master]: fix composer.json syntax error

2017-12-07 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/396040 )

Change subject: fix composer.json syntax error
..

fix composer.json syntax error

Change-Id: Ic6199e71a1b78502fc24d88e7dcb4c06e01bda35
---
M composer.json
1 file changed, 0 insertions(+), 4 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceUniversalExport 
refs/changes/40/396040/1

diff --git a/composer.json b/composer.json
index 1df2623..91ee2be 100644
--- a/composer.json
+++ b/composer.json
@@ -6,8 +6,4 @@
"require": {
"composer/installers": "~1.0"
}
-   "autoload": {
-   "psr-4": {
-   }
-   }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic6199e71a1b78502fc24d88e7dcb4c06e01bda35
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceUniversalExport
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtendedSearch[master]: BlueSpiceExtendedSearch: Fixed Wrong Semikolon

2017-11-22 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/392856 )

Change subject: BlueSpiceExtendedSearch: Fixed Wrong Semikolon
..


BlueSpiceExtendedSearch: Fixed Wrong Semikolon

Fixed wrong semikolon in extension.json.

Change-Id: I1aa97fd7ddb58aff2bb4406931cc7c105c5bf4a7
---
M extension.json
1 file changed, 2 insertions(+), 2 deletions(-)

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



diff --git a/extension.json b/extension.json
index 29e2c66..58239ff 100644
--- a/extension.json
+++ b/extension.json
@@ -1,13 +1,13 @@
 {
"name": "BlueSpiceExtendedSearch",
-   "version": "2.27.0",
+   "license-name": "GPL-3.0",
+   "version": "3.0.0-alpha",
"author": [
"Robert Vogel"
],
"url": 
"https://www.mediawiki.org/wiki/Extension:BlueSpiceExtendedSearch";,
"descriptionmsg": "bs-extsearch-desc",
"namemsg": "bs-extsearch-extensionname",
-   "license-name": "GPL-2.0",
"type": "other",
"MessagesDirs": {
"BlueSpiceExtendedSearch": [

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I1aa97fd7ddb58aff2bb4406931cc7c105c5bf4a7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtendedSearch
Gerrit-Branch: master
Gerrit-Owner: Pmiguelpirzer 
Gerrit-Reviewer: Ljonka 
Gerrit-Reviewer: Mglaser 
Gerrit-Reviewer: Pwirth 
Gerrit-Reviewer: Robert Vogel 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtendedSearch[master]: Revert "BlueSpiceExtendedSearch: Change licence and versio"

2017-11-22 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/392847 )

Change subject: Revert "BlueSpiceExtendedSearch: Change licence and versio"
..


Revert "BlueSpiceExtendedSearch: Change licence and versio"

This reverts commit 4d4cc056832b988db1469123ecc7614c1351ba7f.

syntax error

Change-Id: I98af10d4acb231bf01afd7b885b6d525d9544abe
---
D COPYING
M extension.json
2 files changed, 2 insertions(+), 676 deletions(-)

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



diff --git a/COPYING b/COPYING
deleted file mode 100644
index e72bfdd..000
--- a/COPYING
+++ /dev/null
@@ -1,674 +0,0 @@
-GNU GENERAL PUBLIC LICENSE
-   Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc. 
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-Preamble
-
-  The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
-
-  The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works.  By contrast,
-the GNU General Public License is intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users.  We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors.  You can apply it to
-your programs, too.
-
-  When we speak of free software, we are referring to freedom, not
-price.  Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
-  To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights.  Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
-
-  For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received.  You must make sure that they, too, receive
-or can get the source code.  And you must show them these terms so they
-know their rights.
-
-  Developers that use the GNU GPL protect your rights with two steps:
-(1) assert copyright on the software, and (2) offer you this License
-giving you legal permission to copy, distribute and/or modify it.
-
-  For the developers' and authors' protection, the GPL clearly explains
-that there is no warranty for this free software.  For both users' and
-authors' sake, the GPL requires that modified versions be marked as
-changed, so that their problems will not be attributed erroneously to
-authors of previous versions.
-
-  Some devices are designed to deny users access to install or run
-modified versions of the software inside them, although the manufacturer
-can do so.  This is fundamentally incompatible with the aim of
-protecting users' freedom to change the software.  The systematic
-pattern of such abuse occurs in the area of products for individuals to
-use, which is precisely where it is most unacceptable.  Therefore, we
-have designed this version of the GPL to prohibit the practice for those
-products.  If such problems arise substantially in other domains, we
-stand ready to extend this provision to those domains in future versions
-of the GPL, as needed to protect the freedom of users.
-
-  Finally, every program is threatened constantly by software patents.
-States should not allow patents to restrict development and use of
-software on general-purpose computers, but in those that do, we wish to
-avoid the special danger that patents applied to a free program could
-make it effectively proprietary.  To prevent this, the GPL assures that
-patents cannot be used to render the program non-free.
-
-  The precise terms and conditions for copying, distribution and
-modification follow.
-
-   TERMS AND CONDITIONS
-
-  0. Definitions.
-
-  "This License" refers to version 3 of the GNU General Public License.
-
-  "Copyright" also means copyright-like laws that apply to other kinds of
-works, such as semiconductor masks.
-
-  "The Program" refers to any copyrightable work licensed under this
-License.  Each licensee is addressed as "you".  "Licensees" and
-"recipients" may be individuals or organizations.
-
-  To "modify" a work means to copy from or adapt all or part of the work
-in a fashion requiring copyright permission, other than the making of an
-exa

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceFoundation[master]: BlueSpiceFoundation: Mustache template parser: add message k...

2017-11-21 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/392668 )

Change subject: BlueSpiceFoundation: Mustache template parser: add message key 
handling
..

BlueSpiceFoundation: Mustache template parser: add message key handling

Change-Id: Icbb0b49f237b25d5996be6c42e9c1ea5ce2b6b9b
---
M includes/TemplateHelper.php
A src/TemplateParser.php
A tests/phpunit/Mustache_i18nTest.php
3 files changed, 56 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation 
refs/changes/68/392668/1

diff --git a/includes/TemplateHelper.php b/includes/TemplateHelper.php
index 422ec8e..52f9919 100644
--- a/includes/TemplateHelper.php
+++ b/includes/TemplateHelper.php
@@ -103,7 +103,7 @@
$sTemplateDir = implode('/', $aTplPath );
$sTemplateDir = BsFileSystemHelper::normalizePath( 
$sTemplateDir );
$sTemplateDir = implode( '/', $aTplDir ) . "/" . $sTemplateDir;
-   $oInstance = new TemplateParser( $sTemplateDir, 
$bForceRecompile );
+   $oInstance = new \BlueSpice\TemplateParser( $sTemplateDir, 
$bForceRecompile );
return $oInstance->processTemplate( $sTpl, $args, $scopes );
}
 
diff --git a/src/TemplateParser.php b/src/TemplateParser.php
new file mode 100644
index 000..871b413
--- /dev/null
+++ b/src/TemplateParser.php
@@ -0,0 +1,38 @@
+https://github.com/vedmaka/mediawiki-extension-Mustache_i18n
+
+namespace BlueSpice;
+
+class TemplateParser extends \TemplateParser {
+
+   protected function compile( $code ) {
+   if ( !class_exists( 'LightnCandy' ) ) {
+   throw new \RuntimeException( 'LightnCandy class not 
defined' );
+   }
+
+   //die(print_r($code, true));
+
+   return \LightnCandy::compile(
+   $code, array(
+ // Do not add more flags here without discussion.
+ // If you do add more flags, be sure to update unit 
tests as well.
+ 'flags' => \LightnCandy::FLAG_ERROR_EXCEPTION,
+ 'helpers' => array(
+ '_' => function( $msg ) {
+ if ( count( $msg ) > 1 ) {
+ $msgKey = array_shift( $msg );
+ return wfMessage( $msgKey, 
$msg )->plain();
+ } else {
+ return wfMessage( $msg 
)->plain();
+ }
+ },
+ '__' => function( $msg ) {
+ return wfMessage( $msg )->parse();
+ },
+ )
+   )
+   );
+   }
+
+}
diff --git a/tests/phpunit/Mustache_i18nTest.php 
b/tests/phpunit/Mustache_i18nTest.php
new file mode 100644
index 000..bed1b4c
--- /dev/null
+++ b/tests/phpunit/Mustache_i18nTest.php
@@ -0,0 +1,17 @@
+assertEquals( true, true );
+   }
+
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icbb0b49f237b25d5996be6c42e9c1ea5ce2b6b9b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...Arrays[master]: composer.json: Add required params to have valid file format

2017-11-16 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/391863 )

Change subject: composer.json: Add required params to have valid file format
..

composer.json: Add required params to have valid file format

Change-Id: Id13a730816057d39155916c5267a452524380a17
---
M composer.json
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Arrays 
refs/changes/63/391863/1

diff --git a/composer.json b/composer.json
index 392434c..66a5507 100644
--- a/composer.json
+++ b/composer.json
@@ -1,4 +1,11 @@
 {
+   "name": "mediawiki/arrays",
+   "type": "mediawiki-extension",
+   "description": "Store and compute named arrays",
+   "license": "MIT",
+   "require": {
+   "composer/installers": "~1.0"
+   },
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
"jakub-onderka/php-console-highlighter": "0.3.2",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id13a730816057d39155916c5267a452524380a17
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Arrays
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceFoundation[master]: WIP: BlueSpiceFoundation: Boot Symphony kernel with Workflow...

2017-11-10 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/390438 )

Change subject: WIP: BlueSpiceFoundation: Boot Symphony kernel with Workflower 
bundle, Base
..

WIP: BlueSpiceFoundation: Boot Symphony kernel with Workflower bundle, Base

Change-Id: I0f3b9e5d9cbd03139739897b5dc83f7ff5ef44b2
---
A app/config/config.yml
M composer.json
M includes/CoreHooks.php
A src/AppKernel.php
4 files changed, 35 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation 
refs/changes/38/390438/1

diff --git a/app/config/config.yml b/app/config/config.yml
new file mode 100644
index 000..23bfb2c
--- /dev/null
+++ b/app/config/config.yml
@@ -0,0 +1,6 @@
+# app/config/config.yml
+phpmentors_workflower:
+serializer_service: phpmentors_workflower.base64_php_workflow_serializer # 
Defaults to `phpmentors_workflower.php_workflow_serializer`
+workflow_contexts:
+app:
+definition_dir: 
"%kernel.root_dir%/../src/AppBundle/Resources/config/workflower" # A directory 
where BPMN files for the `app` context are stored
\ No newline at end of file
diff --git a/composer.json b/composer.json
index 136fa1b..c4a38da 100644
--- a/composer.json
+++ b/composer.json
@@ -20,7 +20,9 @@
"ext-gd": "*",
"ext-tidy": "*",
"param-processor/param-processor": "~1.2",
-   "composer/installers": "~1.0"
+   "composer/installers": "~1.0",
+   "phpmentors/workflower": "1.3.*",
+   "phpmentors/workflower-bundle": "1.4.*"
},
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
diff --git a/includes/CoreHooks.php b/includes/CoreHooks.php
index 0a9489b..b209c65 100644
--- a/includes/CoreHooks.php
+++ b/includes/CoreHooks.php
@@ -21,6 +21,9 @@
$GLOBALS['wgExtensionFunctions'],
'BsCore::doInitialise'
);
+
+   $kernel = new \BlueSpice\AppKernel('prod', false);
+   $kernel->boot();
}
 
public static function onSetupAfterCache() {
diff --git a/src/AppKernel.php b/src/AppKernel.php
new file mode 100644
index 000..11e3804
--- /dev/null
+++ b/src/AppKernel.php
@@ -0,0 +1,23 @@
+load( $this->getProjectDir() . 
'/app/config/config.yml' );
+   }
+
+   public function getRootDir() {
+   return realpath( __DIR__ . "/../" );
+   }
+
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0f3b9e5d9cbd03139739897b5dc83f7ff5ef44b2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceFoundation[master]: BlueSpiceFoundation: BSApiTaskBase - add returning error cod...

2017-11-09 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/390241 )

Change subject: BlueSpiceFoundation: BSApiTaskBase - add returning error code 
to prevet crash in mw js api error handling
..

BlueSpiceFoundation: BSApiTaskBase - add returning error code to prevet crash 
in mw js api error handling

Change-Id: Iae9a4d06156716517583b587c03fa6b61204c160
---
M includes/api/BSApiTasksBase.php
1 file changed, 3 insertions(+), 2 deletions(-)


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

diff --git a/includes/api/BSApiTasksBase.php b/includes/api/BSApiTasksBase.php
index c331748..68e7552 100644
--- a/includes/api/BSApiTasksBase.php
+++ b/includes/api/BSApiTasksBase.php
@@ -160,6 +160,7 @@
$mCode = 'dberror'; 
//TODO: error code for subtypes like DBQueryError or DBReadOnlyError?
}
$oResult->errors[$mCode] = 
$e->getMessage();
+   $oResult->errors[0]['code'] = 
'unknown error';
}
}
 
@@ -562,7 +563,7 @@
}
 
protected function returnTaskDataSchema( $sTaskName ) {
-   $this->getResult()->addValue( 
+   $this->getResult()->addValue(
null,
'schema',
$this->oTasksSpec->getSchema( $sTaskName )
@@ -570,7 +571,7 @@
}
 
protected function returnTaskDataExamples( $sTaskName ) {
-   $this->getResult()->addValue( 
+   $this->getResult()->addValue(
null,
'examples',
$this->oTasksSpec->getExamples( $sTaskName )

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iae9a4d06156716517583b587c03fa6b61204c160
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: Removed extensions due to end of development

2017-11-08 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/389923 )

Change subject: Removed extensions due to end of development
..


Removed extensions due to end of development

Those extensions will be replaced or not be needed in BlueSpice 3

Change-Id: Iff7acf49587fbb678e4af95d83d7ea5990dab3e0
---
D StateBar/StateBar.class.php
D StateBar/StateBar.setup.php
D StateBar/doc/Hooks.txt
D StateBar/extension.json
D StateBar/i18n/ar.json
D StateBar/i18n/ast.json
D StateBar/i18n/ba.json
D StateBar/i18n/br.json
D StateBar/i18n/ca.json
D StateBar/i18n/ce.json
D StateBar/i18n/cs.json
D StateBar/i18n/de.json
D StateBar/i18n/diq.json
D StateBar/i18n/en.json
D StateBar/i18n/es.json
D StateBar/i18n/eu.json
D StateBar/i18n/fa.json
D StateBar/i18n/fi.json
D StateBar/i18n/fr.json
D StateBar/i18n/gl.json
D StateBar/i18n/gu.json
D StateBar/i18n/he.json
D StateBar/i18n/ia.json
D StateBar/i18n/it.json
D StateBar/i18n/ja.json
D StateBar/i18n/kn.json
D StateBar/i18n/ko.json
D StateBar/i18n/ksh.json
D StateBar/i18n/lb.json
D StateBar/i18n/lt.json
D StateBar/i18n/lv.json
D StateBar/i18n/mk.json
D StateBar/i18n/ne.json
D StateBar/i18n/nl.json
D StateBar/i18n/pl.json
D StateBar/i18n/pt-br.json
D StateBar/i18n/pt.json
D StateBar/i18n/qqq.json
D StateBar/i18n/roa-tara.json
D StateBar/i18n/ru.json
D StateBar/i18n/sl.json
D StateBar/i18n/sv.json
D StateBar/i18n/tcy.json
D StateBar/i18n/tr.json
D StateBar/i18n/uk.json
D StateBar/i18n/yi.json
D StateBar/i18n/zh-hans.json
D StateBar/i18n/zh-hant.json
D StateBar/includes/api/BSApiStateBarTasks.php
D StateBar/languages/StateBar.i18n.magic.php
D StateBar/resources/bluespice.StateBar.css
D StateBar/resources/bluespice.StateBar.js
D StateBar/tests/phpunit/BSApiStateBarTasksTest.php
D StateBar/views/view.StateBar.php
D StateBar/views/view.StateBarBodyElement.php
D StateBar/views/view.StateBarTopElement.php
D TopMenuBarCustomizer/TopMenuBarCustomizer.class.php
D TopMenuBarCustomizer/TopMenuBarCustomizer.setup.php
D TopMenuBarCustomizer/doc/Hooks.txt
D TopMenuBarCustomizer/extension.json
D TopMenuBarCustomizer/i18n/ast.json
D TopMenuBarCustomizer/i18n/ba.json
D TopMenuBarCustomizer/i18n/be-tarask.json
D TopMenuBarCustomizer/i18n/de.json
D TopMenuBarCustomizer/i18n/en-gb.json
D TopMenuBarCustomizer/i18n/en.json
D TopMenuBarCustomizer/i18n/es.json
D TopMenuBarCustomizer/i18n/fr.json
D TopMenuBarCustomizer/i18n/gl.json
D TopMenuBarCustomizer/i18n/he.json
D TopMenuBarCustomizer/i18n/hu.json
D TopMenuBarCustomizer/i18n/ia.json
D TopMenuBarCustomizer/i18n/it.json
D TopMenuBarCustomizer/i18n/ja.json
D TopMenuBarCustomizer/i18n/lt.json
D TopMenuBarCustomizer/i18n/mk.json
D TopMenuBarCustomizer/i18n/nb.json
D TopMenuBarCustomizer/i18n/nl.json
D TopMenuBarCustomizer/i18n/pl.json
D TopMenuBarCustomizer/i18n/pt-br.json
D TopMenuBarCustomizer/i18n/pt.json
D TopMenuBarCustomizer/i18n/qqq.json
D TopMenuBarCustomizer/i18n/ru.json
D TopMenuBarCustomizer/i18n/sl.json
D TopMenuBarCustomizer/i18n/sv.json
D TopMenuBarCustomizer/i18n/tr.json
D TopMenuBarCustomizer/i18n/tt-cyrl.json
D TopMenuBarCustomizer/i18n/uk.json
D TopMenuBarCustomizer/i18n/zh-hans.json
D TopMenuBarCustomizer/includes/TopMenuBarCustomizerParser.php
D TopMenuBarCustomizer/resources/bluespice.TopMenuBarCustomizer.css
D TopMenuBarCustomizer/resources/bluespice.TopMenuBarCustomizer.js
D TopMenuBarCustomizer/views/view.TopMenuItem.php
D VisualEditor/VisualEditor.class.php
D VisualEditor/VisualEditor.setup.php
D VisualEditor/doc/Hooks.txt
D VisualEditor/extension.json
D VisualEditor/i18n/af.json
D VisualEditor/i18n/ais.json
D VisualEditor/i18n/ar.json
D VisualEditor/i18n/as.json
D VisualEditor/i18n/ast.json
D VisualEditor/i18n/ba.json
D VisualEditor/i18n/be.json
D VisualEditor/i18n/bg.json
D VisualEditor/i18n/bgn.json
D VisualEditor/i18n/bn.json
D VisualEditor/i18n/br.json
D VisualEditor/i18n/ca.json
D VisualEditor/i18n/ce.json
D VisualEditor/i18n/de.json
D VisualEditor/i18n/diq.json
D VisualEditor/i18n/en.json
D VisualEditor/i18n/es.json
D VisualEditor/i18n/eu.json
D VisualEditor/i18n/fa.json
D VisualEditor/i18n/fi.json
D VisualEditor/i18n/fr.json
D VisualEditor/i18n/fy.json
D VisualEditor/i18n/ga.json
D VisualEditor/i18n/gl.json
D VisualEditor/i18n/he.json
D VisualEditor/i18n/hi.json
D VisualEditor/i18n/hy.json
D VisualEditor/i18n/ia.json
D VisualEditor/i18n/inh.json
D VisualEditor/i18n/io.json
D VisualEditor/i18n/it.json
D VisualEditor/i18n/ja.json
D VisualEditor/i18n/jv.json
D VisualEditor/i18n/kab.json
D VisualEditor/i18n/ko.json
D VisualEditor/i18n/ksh.json
D VisualEditor/i18n/ku-latn.json
D VisualEditor/i18n/lb.json
D VisualEditor/i18n/li.json
D VisualEditor/i18n/lt.json
D VisualEditor/i18n/lv.json
D VisualEditor/i18n/mai.json
D VisualEditor/i18n/mg.json
D VisualEditor/i18n/mhr.json
D VisualEditor/i18n/mk.json
D VisualEditor/i18n/ms.json
D VisualEditor/i18n/mwl.json
D VisualEditor/i18n/ne.json
D VisualEditor/i18n/nl.json
D VisualEditor/i18n/oc.json
D

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceDashboards[master]: Dashboards Maintenance: use correct path after extension hav...

2017-11-03 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/388469 )

Change subject: Dashboards Maintenance: use correct path after extension have 
been moved
..


Dashboards Maintenance: use correct path after extension have been moved

Change-Id: Iecd1d112906da8665fd8494ea344dd31fc12ab59
---
M maintenance/clearConfigs.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Pwirth: Looks good to me, approved
  Ljonka: Verified



diff --git a/maintenance/clearConfigs.php b/maintenance/clearConfigs.php
index 9adcecd..a159d3f 100644
--- a/maintenance/clearConfigs.php
+++ b/maintenance/clearConfigs.php
@@ -1,6 +1,6 @@
 https://gerrit.wikimedia.org/r/388469
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iecd1d112906da8665fd8494ea344dd31fc12ab59
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceDashboards
Gerrit-Branch: master
Gerrit-Owner: Ljonka 
Gerrit-Reviewer: Ljonka 
Gerrit-Reviewer: Mglaser 
Gerrit-Reviewer: Pwirth 
Gerrit-Reviewer: Robert Vogel 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceDashboards[master]: Dashboards Maintenance: use correct path after extension hav...

2017-11-03 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/388469 )

Change subject: Dashboards Maintenance: use correct path after extension have 
been moved
..

Dashboards Maintenance: use correct path after extension have been moved

Change-Id: Iecd1d112906da8665fd8494ea344dd31fc12ab59
---
M maintenance/clearConfigs.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceDashboards 
refs/changes/69/388469/1

diff --git a/maintenance/clearConfigs.php b/maintenance/clearConfigs.php
index 9adcecd..a159d3f 100644
--- a/maintenance/clearConfigs.php
+++ b/maintenance/clearConfigs.php
@@ -1,6 +1,6 @@
 https://gerrit.wikimedia.org/r/388469
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iecd1d112906da8665fd8494ea344dd31fc12ab59
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceDashboards
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceFoundation[master]: build: Adding MinusX

2017-11-03 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/388297 )

Change subject: build: Adding MinusX
..


build: Adding MinusX

And fix issues it found.

Change-Id: Ie0bd4fe57ad575eb694a161045f5d938ed6bd306
---
M composer.json
M i18n/upload/en.json
M i18n/upload/qqq.json
M includes/CoreHooks.php
M includes/JsonLicenses.php
M includes/api/BSApiUploadLicenseStore.php
M resources/bluespice.extjs/BS/Window.js
M resources/bluespice.extjs/BS/action/APIDeletePage.js
M resources/bluespice.extjs/BS/action/APIRemoveCategories.js
M resources/bluespice.extjs/BS/dialog/Upload.js
M resources/bluespice.extjs/BS/grid/FileRepo.js
M resources/bluespice.extjs/BS/panel/Upload.js
M resources/bluespice.extjs/bluespice.extjs.js
13 files changed, 10 insertions(+), 5 deletions(-)

Approvals:
  Ljonka: Verified; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/composer.json b/composer.json
index 2b5f1a5..136fa1b 100644
--- a/composer.json
+++ b/composer.json
@@ -24,21 +24,26 @@
},
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
-   "jakub-onderka/php-console-highlighter": "0.3.2"
+   "jakub-onderka/php-console-highlighter": "0.3.2",
+   "mediawiki/minus-x": "0.2.0"
},
"scripts": {
"test": [
-   "parallel-lint . --exclude vendor"
+   "parallel-lint . --exclude vendor",
+   "minus-x check ."
+   ],
+   "fix": [
+   "minus-x fix ."
]
},
"support": {
"issues": "https://sourceforge.net/projects/bluespice/support";,
"wiki": "https://help.bluespice.com";
},
-   "autoload" : {
+   "autoload": {
"psr-4": {
-   "BlueSpice\\Tests\\" : "tests/phpunit",
-   "BlueSpice\\" : "src"
+   "BlueSpice\\Tests\\": "tests/phpunit",
+   "BlueSpice\\": "src"
}
}
 }
diff --git a/i18n/upload/en.json b/i18n/upload/en.json
old mode 100755
new mode 100644
diff --git a/i18n/upload/qqq.json b/i18n/upload/qqq.json
old mode 100755
new mode 100644
diff --git a/includes/CoreHooks.php b/includes/CoreHooks.php
old mode 100755
new mode 100644
diff --git a/includes/JsonLicenses.php b/includes/JsonLicenses.php
old mode 100755
new mode 100644
diff --git a/includes/api/BSApiUploadLicenseStore.php 
b/includes/api/BSApiUploadLicenseStore.php
old mode 100755
new mode 100644
diff --git a/resources/bluespice.extjs/BS/Window.js 
b/resources/bluespice.extjs/BS/Window.js
old mode 100755
new mode 100644
diff --git a/resources/bluespice.extjs/BS/action/APIDeletePage.js 
b/resources/bluespice.extjs/BS/action/APIDeletePage.js
old mode 100755
new mode 100644
diff --git a/resources/bluespice.extjs/BS/action/APIRemoveCategories.js 
b/resources/bluespice.extjs/BS/action/APIRemoveCategories.js
old mode 100755
new mode 100644
diff --git a/resources/bluespice.extjs/BS/dialog/Upload.js 
b/resources/bluespice.extjs/BS/dialog/Upload.js
old mode 100755
new mode 100644
diff --git a/resources/bluespice.extjs/BS/grid/FileRepo.js 
b/resources/bluespice.extjs/BS/grid/FileRepo.js
old mode 100755
new mode 100644
diff --git a/resources/bluespice.extjs/BS/panel/Upload.js 
b/resources/bluespice.extjs/BS/panel/Upload.js
old mode 100755
new mode 100644
diff --git a/resources/bluespice.extjs/bluespice.extjs.js 
b/resources/bluespice.extjs/bluespice.extjs.js
old mode 100755
new mode 100644

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie0bd4fe57ad575eb694a161045f5d938ed6bd306
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Legoktm 
Gerrit-Reviewer: Ljonka 
Gerrit-Reviewer: Mglaser 
Gerrit-Reviewer: Pwirth 
Gerrit-Reviewer: Robert Vogel 
Gerrit-Reviewer: Siebrand 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceEmoticons[master]: Initial commit

2017-11-03 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/388422 )

Change subject: Initial commit
..


Initial commit

Change-Id: I0e9a8a110c92ff5dc04fcca80b8077417e32ef1e
---
A .gitignore
A .gitreview
A CODE_OF_CONDUCT.md
A Emoticons.class.php
A composer.json
A emoticons/angry.png
A emoticons/bad.png
A emoticons/confused.png
A emoticons/crying.png
A emoticons/embarrassed.png
A emoticons/glasses-cool.png
A emoticons/good.png
A emoticons/hammer.png
A emoticons/handcuffs.png
A emoticons/laugh.png
A emoticons/msn.png
A emoticons/msn_online.png
A emoticons/neutral.png
A emoticons/rose.png
A emoticons/sad.png
A emoticons/shame.png
A emoticons/shock.png
A emoticons/shut-mouth.png
A emoticons/smile-big.png
A emoticons/smile.png
A emoticons/theme
A emoticons/thinking.png
A emoticons/wink.png
A emoticons/yawn.png
A extension.json
A i18n/ar.json
A i18n/ast.json
A i18n/ba.json
A i18n/be-tarask.json
A i18n/de.json
A i18n/en.json
A i18n/es.json
A i18n/fa.json
A i18n/fr.json
A i18n/gl.json
A i18n/ia.json
A i18n/id.json
A i18n/it.json
A i18n/ksh.json
A i18n/lb.json
A i18n/lij.json
A i18n/lt.json
A i18n/mk.json
A i18n/nb.json
A i18n/nl.json
A i18n/oc.json
A i18n/pt-br.json
A i18n/pt.json
A i18n/qqq.json
A i18n/roa-tara.json
A i18n/ru.json
A i18n/sl.json
A i18n/sv.json
A i18n/tr.json
A i18n/uk.json
A i18n/zh-hans.json
A i18n/zh-hant.json
A resources/default-mapping.txt
63 files changed, 1,143 insertions(+), 0 deletions(-)

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



diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000..db8a779
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+/node_modules
+/vendor
+/composer.lock
diff --git a/.gitreview b/.gitreview
new file mode 100644
index 000..f1d7fb1
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,6 @@
+[gerrit]
+host=gerrit.wikimedia.org
+port=29418
+project=mediawiki/extensions/BlueSpiceEmoticons.git
+track=1
+defaultrebase=0
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 000..d8e5d08
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1 @@
+The development of this software is covered by a [Code of 
Conduct](https://www.mediawiki.org/wiki/Code_of_Conduct).
diff --git a/Emoticons.class.php b/Emoticons.class.php
new file mode 100644
index 000..e8bc127
--- /dev/null
+++ b/Emoticons.class.php
@@ -0,0 +1,210 @@
+http://www.bluespice.com
+ *
+ * @author Alex Wollangk
+ * @author Marc Reymann 
+ * @author Sebastian Ulbricht
+ * @author Mathias Scheer 
+ * @author Robert Vogel 
+ * @author Patric Wirth 
+ * @version2.23.1
+ * @packageBlueSpice_Extensions
+ * @subpackage Emoticons
+ * @copyright  Copyright (C) 2016 Hallo Welt! GmbH, All rights reserved.
+ * @licensehttp://www.gnu.org/copyleft/gpl.html GNU Public License v2 or 
later
+ * @filesource
+ */
+
+// Last review MRG (30.06.11 10:34)
+
+/**
+ * Base class for Emoticons extension
+ *  Created by Alex Wollangk (a...@wollangk.com)
+ *  Considerably mangled by Marc Reymann
+ * @package BlueSpice_Extensions
+ * @subpackage Emoticons
+ */
+class Emoticons extends BsExtensionMW {
+/**
+* Initialization of Authors extension
+*/
+   protected function initExt() {
+   wfProfileIn( 'BS::'.__METHOD__ );
+   $this->setHook( 'OutputPageBeforeHTML' );
+   $this->setHook( 'PageContentSave' );
+   wfProfileOut( 'BS::'.__METHOD__ );
+   }
+
+   /**
+* Hook-Handler for 'OutputPageBeforeHTML' (MediaWiki). Replaces 
Emoticon syntax with images.
+* @param ParserOutput $oParserOutput The ParserOutput object that 
corresponds to the page.
+* @param string $sText The text that will be displayed in HTML.
+* @return bool Always true to keep hook running.
+*/
+   public function onOutputPageBeforeHTML( &$oParserOutput, &$sText) {
+   global $wgScriptPath;
+
+   $sCurrentAction = $this->getRequest()->getVal( 'action', 'view' 
);
+   $oCurrentTitle  = $this->getTitle();
+
+   if ( in_array( $sCurrentAction, array('edit', 'history', 
'delete', 'watch') ) ) return true;
+   if ( in_array( $oCurrentTitle->getNamespace(), array( 
NS_SPECIAL, NS_MEDIAWIKI ) ) ) return true;
+
+   wfProfileIn( 'BS::'.__METHOD__ );
+   $sKey = BsCacheHelper::getCacheKey( 'BlueSpice', 'Emoticons' );
+   $aMapping = BsCacheHelper::get( $sKey );
+
+   if ( $aMapping == false ) {
+   $sPathToEmoticons = $wgScriptPath . 
'/extensions/BlueSpiceEmoticons/emoticons';
+
+   // Get the list of emoticons from the message system.
+   $sMappingContent = "smile.png   :-) :)
+   sad.png 
:-( :(
+  

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceDashboards[master]: Initial commit

2017-11-03 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/388419 )

Change subject: Initial commit
..


Initial commit

Change-Id: I22d9e62387c0180556e760322da93dffeb48dc01
---
A .gitignore
A .gitreview
A CODE_OF_CONDUCT.md
A Dashboards.class.php
A composer.json
A db/mysql/bs_dashboards_configs.sql
A extension.json
A i18n/ar.json
A i18n/ast.json
A i18n/ba.json
A i18n/bn.json
A i18n/br.json
A i18n/ce.json
A i18n/de.json
A i18n/diq.json
A i18n/dty.json
A i18n/en-gb.json
A i18n/en.json
A i18n/es.json
A i18n/eu.json
A i18n/fa.json
A i18n/fr.json
A i18n/gl.json
A i18n/he.json
A i18n/hi.json
A i18n/hu.json
A i18n/ia.json
A i18n/id.json
A i18n/it.json
A i18n/ja.json
A i18n/ko.json
A i18n/ksh.json
A i18n/lb.json
A i18n/lt.json
A i18n/mk.json
A i18n/nl.json
A i18n/oc.json
A i18n/pa.json
A i18n/pl.json
A i18n/ps.json
A i18n/pt-br.json
A i18n/pt.json
A i18n/qqq.json
A i18n/roa-tara.json
A i18n/ru.json
A i18n/sl.json
A i18n/sq.json
A i18n/sv.json
A i18n/tcy.json
A i18n/th.json
A i18n/tr.json
A i18n/tt-cyrl.json
A i18n/uk.json
A i18n/uz.json
A i18n/yue.json
A i18n/zh-hans.json
A i18n/zh-hant.json
A includes/api/BSApiDashboardStore.php
A includes/api/BSApiDashboardTasks.php
A includes/api/BSApiDashboardWidgetsTasks.php
A includes/specials/SpecialAdminDashboard.php
A includes/specials/SpecialUserDashboard.php
A languages/Dashboards.alias.php
A maintenance/clearConfigs.php
A resources/BS.Dashboards/CalendarPortlet.js
A resources/BS.Dashboards/CalendarPortletConfig.js
A resources/BS.Dashboards/DashboardPanel.js
A resources/BS.Dashboards/LogEventsPortlet.js
A resources/BS.Dashboards/LogEventsPortletConfig.js
A resources/BS.Dashboards/PortletCatalog.js
A resources/BS.Dashboards/WeatherPortlet.js
A resources/BS.Dashboards/WeatherPortletConfig.js
A resources/BS.Dashboards/WikiPagePortlet.js
A resources/BS.Dashboards/WikiPagePortletConfig.js
A resources/bluespice.dashboards.adminDashboard.js
A resources/bluespice.dashboards.css
A resources/bluespice.dashboards.main.js
A resources/bluespice.dashboards.portletcatalog.js
A resources/bluespice.dashboards.userDashboard.js
A tests/phpunit/BSApiDashboardStoreTest.php
A tests/phpunit/BSApiDashboardTasksTest.php
A tests/phpunit/BSApiDashboardWidgetsTasksTest.php
82 files changed, 2,385 insertions(+), 0 deletions(-)

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



diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000..db8a779
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+/node_modules
+/vendor
+/composer.lock
diff --git a/.gitreview b/.gitreview
new file mode 100644
index 000..e6bc010
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,6 @@
+[gerrit]
+host=gerrit.wikimedia.org
+port=29418
+project=mediawiki/extensions/BlueSpiceDashboards.git
+track=1
+defaultrebase=0
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 000..d8e5d08
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1 @@
+The development of this software is covered by a [Code of 
Conduct](https://www.mediawiki.org/wiki/Code_of_Conduct).
diff --git a/Dashboards.class.php b/Dashboards.class.php
new file mode 100644
index 000..f5bea58
--- /dev/null
+++ b/Dashboards.class.php
@@ -0,0 +1,232 @@
+http://www.bluespice.com
+ *
+ * @author Robert Vogel 
+ * @author Stephan Muggli 
+ * @version2.23.1
+ * @packageBlueSpice_Extensions
+ * @subpackage Dashboards
+ * @copyright  Copyright (C) 2016 Hallo Welt! GmbH, All rights reserved.
+ * @licensehttp://www.gnu.org/copyleft/gpl.html GNU Public License v2 or 
later
+ * @filesource
+ */
+
+/**
+ * Base class for Dashboards extension
+ * @package BlueSpice_Extensions
+ * @subpackage Dashboards
+ */
+class Dashboards extends BsExtensionMW {
+   /**
+* Initialization of Dashboards extension
+*/
+   public function  initExt() {
+   wfProfileIn( 'BS::'.__METHOD__ );
+
+   BsConfig::registerVar('MW::Dashboards::UserDashboardOnLogo', 
false, BsConfig::LEVEL_USER|BsConfig::TYPE_BOOL, 
'bs-dashboards-pref-userdashboardonlogo', 'toggle');
+
+   $this->setHook( 'BeforePageDisplay' );
+   $this->setHook( 'ParserFirstCallInit' );
+   $this->setHook( 'PersonalUrls' );
+   $this->setHook( 'BSDashboardsUserDashboardPortalConfig' );
+   $this->setHook( 'BSDashboardsUserDashboardPortalPortlets' );
+   //$this->setHook( 'BSInsertMagicAjaxGetData' );
+
+   $this->mCore->registerPermission( 
'dashboards-viewspecialpage-userdashboard', array('user'), array( 'type' => 
'global' ) );
+
+   wfProfileOut( 'BS::'.__METHOD__ );
+   }
+
+   /**
+* Hook-Handler for MediaWiki 'BeforePageDisplay' hook. Sets context if 
needed.
+* @param OutputPage $oOutputPage
+* @param Skin $oSkin
+* @return bool
+*/
+   public function onBeforePageDisplay( &$oOutputPag

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: NameSpaceManager: reactivate before move is not done jet

2017-11-03 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/388455 )

Change subject: NameSpaceManager: reactivate before move is not done jet
..

NameSpaceManager: reactivate before move is not done jet

Change-Id: I439b98dd089a6c46be8d6781fc25bbe3fe96f0b1
---
M BlueSpiceExtensions.default.php
1 file changed, 1 insertion(+), 0 deletions(-)


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

diff --git a/BlueSpiceExtensions.default.php b/BlueSpiceExtensions.default.php
index 7131a59..45a3416 100644
--- a/BlueSpiceExtensions.default.php
+++ b/BlueSpiceExtensions.default.php
@@ -18,6 +18,7 @@
 require_once( __DIR__."/InsertLink/InsertLink.setup.php" );
 require_once( __DIR__."/InsertMagic/InsertMagic.setup.php" );
 require_once( __DIR__."/NamespaceCss/NamespaceCss.setup.php" );
+require_once( __DIR__."/NamespaceManager/NamespaceManager.setup.php" );
 require_once( __DIR__."/PageAccess/PageAccess.setup.php" );
 require_once( __DIR__."/TopMenuBarCustomizer/TopMenuBarCustomizer.setup.php" );
 require_once( __DIR__."/UsageTracker/UsageTracker.setup.php" );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I439b98dd089a6c46be8d6781fc25bbe3fe96f0b1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceFoundation[master]: NameSpaceHelper: Add Helper to get namespace constant name f...

2017-11-02 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/388055 )

Change subject: NameSpaceHelper: Add Helper to get namespace constant name from 
given key number
..

NameSpaceHelper: Add Helper to get namespace constant name from given key number

Change-Id: I2aa8b27ebd463ad59fbe7fbfcc009e06c77bca5e
---
M includes/utility/NamespaceHelper.class.php
1 file changed, 25 insertions(+), 6 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation 
refs/changes/55/388055/1

diff --git a/includes/utility/NamespaceHelper.class.php 
b/includes/utility/NamespaceHelper.class.php
index d313a94..bb2be01 100644
--- a/includes/utility/NamespaceHelper.class.php
+++ b/includes/utility/NamespaceHelper.class.php
@@ -26,8 +26,8 @@
/**
 * returns the constantname for MW NS like 0 => NS_MAIN
 * @param type $iNamespaceId
-* @return string 
-*/ 
+* @return string
+*/
public static function getMwNamespaceConstant( $iNamespaceId ) {
if( isset( self::$aNamespaceMap[$iNamespaceId] ) ) {
return self::$aNamespaceMap[$iNamespaceId];
@@ -38,7 +38,7 @@
 
/**
 * Returns array with MW NS Mapping
-* @return Array 
+* @return Array
 */
public static function getMwNamespaceConstants() {
//TODO: Use this logic for contants mapping
@@ -97,7 +97,7 @@
 * @global array $wgNamespaceAliases stores all the namespace aliases
 * @global array $wgCanonicalNamespaceNames stores generic namespace 
names
 * @param int $iNamespaceId number of namespace index
-* @return array List of namespace names 
+* @return array List of namespace names
 */
public static function getNamespaceNamesAndAliases($iNamespaceId) {
wfProfileIn('BS::' . __METHOD__);
@@ -138,7 +138,7 @@
 *
 * @param array $aNamespaces Array of namespaces i.e. array( 3, 5, 
'SomeNamespace', 4 )
 * @return Array Array of integer Namespaces, i.e. array( 4, 14, 100, 7 
);
-* @throws BsInvalidNamespaceException In case a invalid namespace is 
given 
+* @throws BsInvalidNamespaceException In case a invalid namespace is 
given
 */
public static function getNamespaceIdsFromAmbiguousArray($aNamespaces) {
return self::getNamespaceIdsFromAmbiguousCSVString( implode( 
',', $aNamespaces ) );
@@ -209,7 +209,7 @@
 * Creates an array for the HTMLFormField class for select boxes.
 * @global Language $wgContLang
 * @param array $aExcludeIds
-* @return array 
+* @return array
 */
public static function getNamespacesForSelectOptions( $aExcludeIds = 
array() ) {
wfProfileIn('BS::' . __METHOD__);
@@ -255,4 +255,23 @@
return false;
}
}
+
+   /**
+* Return Namespace constant name to given key, null if not found
+* @param String $nsKey Namespace Key Number eg. 3000
+* @return String PHP Constant name with given key eg NS_FOO_BAR | null
+*/
+   public static function getNSConstName( $nsKey ) {
+   $constants = get_defined_constants();
+
+   $constName = null;
+   foreach ( $constants as $name => $value ) {
+   if ( $nsKey == $value && strpos( $name, "NS_" ) !== 
FALSE ) {
+   $constName = $name;
+   break;
+   }
+   }
+   return $constName;
+   }
+
 }
\ No newline at end of file

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2aa8b27ebd463ad59fbe7fbfcc009e06c77bca5e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: Remove PageVisited extension

2017-11-02 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/387207 )

Change subject: Remove PageVisited extension
..


Remove PageVisited extension

New repo:
https://gerrit.wikimedia.org/r/#/c/388008/

Change-Id: I326fefe66283b2a0461c22bebb1968cd0c8bf3b2
ERM: #7930
---
D PagesVisited/PagesVisited.class.php
D PagesVisited/PagesVisited.setup.php
D PagesVisited/extension.json
D PagesVisited/i18n/ar.json
D PagesVisited/i18n/ba.json
D PagesVisited/i18n/bg.json
D PagesVisited/i18n/bgn.json
D PagesVisited/i18n/bn.json
D PagesVisited/i18n/br.json
D PagesVisited/i18n/ce.json
D PagesVisited/i18n/cv.json
D PagesVisited/i18n/da.json
D PagesVisited/i18n/de-formal.json
D PagesVisited/i18n/de.json
D PagesVisited/i18n/en-gb.json
D PagesVisited/i18n/en.json
D PagesVisited/i18n/es.json
D PagesVisited/i18n/fa.json
D PagesVisited/i18n/fr.json
D PagesVisited/i18n/fy.json
D PagesVisited/i18n/gl.json
D PagesVisited/i18n/he.json
D PagesVisited/i18n/hu.json
D PagesVisited/i18n/id.json
D PagesVisited/i18n/it.json
D PagesVisited/i18n/ja.json
D PagesVisited/i18n/ko.json
D PagesVisited/i18n/ksh.json
D PagesVisited/i18n/lb.json
D PagesVisited/i18n/lki.json
D PagesVisited/i18n/lt.json
D PagesVisited/i18n/mai.json
D PagesVisited/i18n/mk.json
D PagesVisited/i18n/nb.json
D PagesVisited/i18n/nl.json
D PagesVisited/i18n/om.json
D PagesVisited/i18n/pl.json
D PagesVisited/i18n/pt-br.json
D PagesVisited/i18n/pt.json
D PagesVisited/i18n/qqq.json
D PagesVisited/i18n/ru.json
D PagesVisited/i18n/sl.json
D PagesVisited/i18n/sq.json
D PagesVisited/i18n/sv.json
D PagesVisited/i18n/tcy.json
D PagesVisited/i18n/tr.json
D PagesVisited/i18n/uk.json
D PagesVisited/i18n/zh-hans.json
D PagesVisited/i18n/zh-hant.json
49 files changed, 0 insertions(+), 1,088 deletions(-)

Approvals:
  Ljonka: Verified; Looks good to me, approved
  Raimond Spekking: Looks good to me, but someone else must approve
  jenkins-bot: Checked



diff --git a/PagesVisited/PagesVisited.class.php 
b/PagesVisited/PagesVisited.class.php
deleted file mode 100644
index 82e9a46..000
--- a/PagesVisited/PagesVisited.class.php
+++ /dev/null
@@ -1,380 +0,0 @@
-http://www.bluespice.com
- *
- * @author Robert Vogel 
- * @author Stephan Muggli 
- * @version2.23.1
- * @packageBlueSpice_Extensions
- * @subpackage PagesVisited
- * @copyright  Copyright (C) 2016 Hallo Welt! GmbH, All rights reserved.
- * @licensehttp://www.gnu.org/copyleft/gpl.html GNU Public License v2 or 
later
- * @filesource
- */
-
-/**
- * Base class for PagesVisited extension
- * @package BlueSpice_Extensions
- * @subpackage PagesVisited
- */
-class PagesVisited extends BsExtensionMW {
-
-   /**
-* Should cache a result list. Currently disabled.
-* @var array
-*/
-   private static $prResultListViewCache = array();
-   /**
-* Initialization of PagesVisited extension
-*/
-   protected function initExt() {
-   wfProfileIn( 'BS::'.__METHOD__ );
-   $this->setHook( 'ParserFirstCallInit' );
-   $this->setHook( 'BSUserSidebarDefaultWidgets' );
-   $this->setHook( 'BSWidgetListHelperInitKeyWords' );
-   $this->setHook( 'BSInsertMagicAjaxGetData' );
-   $this->setHook( 'BSUsageTrackerRegisterCollectors' );
-
-   BsConfig::registerVar( 'MW::PagesVisited::WidgetLimit', 10, 
BsConfig::LEVEL_USER|BsConfig::TYPE_INT, 'bs-pagesvisited-pref-widgetlimit', 
'int' );
-   BsConfig::registerVar( 'MW::PagesVisited::WidgetNS', array( 0 
), 
BsConfig::LEVEL_USER|BsConfig::TYPE_ARRAY_STRING|BsConfig::USE_PLUGIN_FOR_PREFS,
 'bs-pagesvisited-pref-widgetns', 'multiselectex' );
-   BsConfig::registerVar( 'MW::PagesVisited::WidgetSortOdr', 
'time', 
BsConfig::LEVEL_USER|BsConfig::TYPE_STRING|BsConfig::USE_PLUGIN_FOR_PREFS, 
'bs-pagesvisited-pref-widgetsortodr', 'select' );
-
-   wfProfileOut( 'BS::'.__METHOD__ );
-   }
-
-   /**
-* The preferences plugin callback
-* @param string $sAdapterName
-* @param BsConfig $oVariable
-* @return array MediaWiki preferences options array
-*/
-   public function runPreferencePlugin( $sAdapterName, $oVariable ) {
-   $aPrefs = array();
-   switch( $oVariable->getName() ) {
-   case 'WidgetNS':
-   $aPrefs = array(
-   'type' => 'multiselectex',
-   'options' => 
BsNamespaceHelper::getNamespacesForSelectOptions( array( -2, NS_MEDIA, 
NS_MEDIAWIKI, NS_MEDIAWIKI_TALK, NS_SPECIAL ) )
-   );
-   break;
-   case 'WidgetSortOdr':
-   $aPrefs = array(
-   'options' => array(
-

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: Remove PageVisited from configuration file

2017-11-02 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/387205 )

Change subject: Remove PageVisited from configuration file
..


Remove PageVisited from configuration file

New repo:
https://gerrit.wikimedia.org/r/#/c/388008/

Change-Id: If9a062b9485c9da970682687dfd08a1c67aa1d25
ERM: #7930
---
M BlueSpiceExtensions.default.php
1 file changed, 0 insertions(+), 1 deletion(-)

Approvals:
  Ljonka: Verified; Looks good to me, approved
  jenkins-bot: Checked
  Zoranzoki21: Looks good to me, but someone else must approve



diff --git a/BlueSpiceExtensions.default.php b/BlueSpiceExtensions.default.php
index dd69508..d70664c 100644
--- a/BlueSpiceExtensions.default.php
+++ b/BlueSpiceExtensions.default.php
@@ -20,7 +20,6 @@
 require_once( __DIR__."/InsertMagic/InsertMagic.setup.php" );
 require_once( __DIR__."/NamespaceCss/NamespaceCss.setup.php" );
 require_once( __DIR__."/PageAccess/PageAccess.setup.php" );
-require_once( __DIR__."/PagesVisited/PagesVisited.setup.php" );
 require_once( __DIR__."/TopMenuBarCustomizer/TopMenuBarCustomizer.setup.php" );
 require_once( __DIR__."/UsageTracker/UsageTracker.setup.php" );
 require_once( __DIR__."/UserSidebar/UserSidebar.setup.php" );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: If9a062b9485c9da970682687dfd08a1c67aa1d25
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: ItSpiderman 
Gerrit-Reviewer: Ljonka 
Gerrit-Reviewer: Mglaser 
Gerrit-Reviewer: Pwirth 
Gerrit-Reviewer: Robert Vogel 
Gerrit-Reviewer: Zoranzoki21 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpicePagesVisited[master]: Initial commit:

2017-11-02 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/388008 )

Change subject: Initial commit:
..


Initial commit:

Removal from BlueSpiceExtensions:
- https://gerrit.wikimedia.org/r/#/c/387205/
- https://gerrit.wikimedia.org/r/#/c/387207/

Change-Id: Ic3c0ca0875a801795e898c4adc2d35187057789f
ERM: #7930
---
A .gitreview
A CODE_OF_CONDUCT.md
A PagesVisited.class.php
A composer.json
A extension.json
A i18n/ar.json
A i18n/ba.json
A i18n/bg.json
A i18n/bgn.json
A i18n/bn.json
A i18n/br.json
A i18n/ce.json
A i18n/cv.json
A i18n/da.json
A i18n/de-formal.json
A i18n/de.json
A i18n/en-gb.json
A i18n/en.json
A i18n/es.json
A i18n/fa.json
A i18n/fr.json
A i18n/fy.json
A i18n/gl.json
A i18n/he.json
A i18n/hu.json
A i18n/id.json
A i18n/it.json
A i18n/ja.json
A i18n/ko.json
A i18n/ksh.json
A i18n/lb.json
A i18n/lki.json
A i18n/lt.json
A i18n/mai.json
A i18n/mk.json
A i18n/nb.json
A i18n/nl.json
A i18n/om.json
A i18n/pl.json
A i18n/pt-br.json
A i18n/pt.json
A i18n/qqq.json
A i18n/ru.json
A i18n/sl.json
A i18n/sq.json
A i18n/sv.json
A i18n/tcy.json
A i18n/tr.json
A i18n/uk.json
A i18n/zh-hans.json
A i18n/zh-hant.json
51 files changed, 1,107 insertions(+), 0 deletions(-)

Approvals:
  Ljonka: Verified; Looks good to me, approved
  Raimond Spekking: Looks good to me, but someone else must approve



diff --git a/.gitreview b/.gitreview
new file mode 100644
index 000..9bf982a
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,6 @@
+[gerrit]
+host=gerrit.wikimedia.org
+port=29418
+project=mediawiki/extensions/BlueSpicePagesVisited.git
+defaultbranch=master
+defaultrebase=0
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 000..d8e5d08
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1 @@
+The development of this software is covered by a [Code of 
Conduct](https://www.mediawiki.org/wiki/Code_of_Conduct).
diff --git a/PagesVisited.class.php b/PagesVisited.class.php
new file mode 100644
index 000..82e9a46
--- /dev/null
+++ b/PagesVisited.class.php
@@ -0,0 +1,380 @@
+http://www.bluespice.com
+ *
+ * @author Robert Vogel 
+ * @author Stephan Muggli 
+ * @version2.23.1
+ * @packageBlueSpice_Extensions
+ * @subpackage PagesVisited
+ * @copyright  Copyright (C) 2016 Hallo Welt! GmbH, All rights reserved.
+ * @licensehttp://www.gnu.org/copyleft/gpl.html GNU Public License v2 or 
later
+ * @filesource
+ */
+
+/**
+ * Base class for PagesVisited extension
+ * @package BlueSpice_Extensions
+ * @subpackage PagesVisited
+ */
+class PagesVisited extends BsExtensionMW {
+
+   /**
+* Should cache a result list. Currently disabled.
+* @var array
+*/
+   private static $prResultListViewCache = array();
+   /**
+* Initialization of PagesVisited extension
+*/
+   protected function initExt() {
+   wfProfileIn( 'BS::'.__METHOD__ );
+   $this->setHook( 'ParserFirstCallInit' );
+   $this->setHook( 'BSUserSidebarDefaultWidgets' );
+   $this->setHook( 'BSWidgetListHelperInitKeyWords' );
+   $this->setHook( 'BSInsertMagicAjaxGetData' );
+   $this->setHook( 'BSUsageTrackerRegisterCollectors' );
+
+   BsConfig::registerVar( 'MW::PagesVisited::WidgetLimit', 10, 
BsConfig::LEVEL_USER|BsConfig::TYPE_INT, 'bs-pagesvisited-pref-widgetlimit', 
'int' );
+   BsConfig::registerVar( 'MW::PagesVisited::WidgetNS', array( 0 
), 
BsConfig::LEVEL_USER|BsConfig::TYPE_ARRAY_STRING|BsConfig::USE_PLUGIN_FOR_PREFS,
 'bs-pagesvisited-pref-widgetns', 'multiselectex' );
+   BsConfig::registerVar( 'MW::PagesVisited::WidgetSortOdr', 
'time', 
BsConfig::LEVEL_USER|BsConfig::TYPE_STRING|BsConfig::USE_PLUGIN_FOR_PREFS, 
'bs-pagesvisited-pref-widgetsortodr', 'select' );
+
+   wfProfileOut( 'BS::'.__METHOD__ );
+   }
+
+   /**
+* The preferences plugin callback
+* @param string $sAdapterName
+* @param BsConfig $oVariable
+* @return array MediaWiki preferences options array
+*/
+   public function runPreferencePlugin( $sAdapterName, $oVariable ) {
+   $aPrefs = array();
+   switch( $oVariable->getName() ) {
+   case 'WidgetNS':
+   $aPrefs = array(
+   'type' => 'multiselectex',
+   'options' => 
BsNamespaceHelper::getNamespacesForSelectOptions( array( -2, NS_MEDIA, 
NS_MEDIAWIKI, NS_MEDIAWIKI_TALK, NS_SPECIAL ) )
+   );
+   break;
+   case 'WidgetSortOdr':
+   $aPrefs = array(
+   'options' => array(
+   wfMessage( 
'bs-pagesvisited-pref-sort-time' )->plain() => 'time',
+   

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: Remove InterWikiLinks extension

2017-11-02 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/387184 )

Change subject: Remove InterWikiLinks extension
..


Remove InterWikiLinks extension

New repo:
https://gerrit.wikimedia.org/r/#/c/388007/

Change-Id: Ia0beebbb16e460180ad6fd15d6e23aa343f55319
ERM: #7929
---
D InterWikiLinks/InterWikiLinks.class.php
D InterWikiLinks/InterWikiLinks.setup.php
D InterWikiLinks/extension.json
D InterWikiLinks/i18n/ar.json
D InterWikiLinks/i18n/ast.json
D InterWikiLinks/i18n/ba.json
D InterWikiLinks/i18n/bho.json
D InterWikiLinks/i18n/bn.json
D InterWikiLinks/i18n/br.json
D InterWikiLinks/i18n/ce.json
D InterWikiLinks/i18n/cv.json
D InterWikiLinks/i18n/de-formal.json
D InterWikiLinks/i18n/de.json
D InterWikiLinks/i18n/diq.json
D InterWikiLinks/i18n/en.json
D InterWikiLinks/i18n/es.json
D InterWikiLinks/i18n/eu.json
D InterWikiLinks/i18n/fa.json
D InterWikiLinks/i18n/fr.json
D InterWikiLinks/i18n/fy.json
D InterWikiLinks/i18n/gl.json
D InterWikiLinks/i18n/he.json
D InterWikiLinks/i18n/hu.json
D InterWikiLinks/i18n/ia.json
D InterWikiLinks/i18n/it.json
D InterWikiLinks/i18n/ja.json
D InterWikiLinks/i18n/ko.json
D InterWikiLinks/i18n/ksh.json
D InterWikiLinks/i18n/lb.json
D InterWikiLinks/i18n/lt.json
D InterWikiLinks/i18n/mk.json
D InterWikiLinks/i18n/mr.json
D InterWikiLinks/i18n/ne.json
D InterWikiLinks/i18n/nl.json
D InterWikiLinks/i18n/oc.json
D InterWikiLinks/i18n/pl.json
D InterWikiLinks/i18n/ps.json
D InterWikiLinks/i18n/pt-br.json
D InterWikiLinks/i18n/pt.json
D InterWikiLinks/i18n/qqq.json
D InterWikiLinks/i18n/ru.json
D InterWikiLinks/i18n/sd.json
D InterWikiLinks/i18n/sl.json
D InterWikiLinks/i18n/sv.json
D InterWikiLinks/i18n/tr.json
D InterWikiLinks/i18n/uk.json
D InterWikiLinks/i18n/zh-hans.json
D InterWikiLinks/i18n/zh-hant.json
D InterWikiLinks/includes/api/BSApiTasksInterWikiLinksManager.php
D InterWikiLinks/includes/specials/SpecialInterWikiLinks.alias.php
D InterWikiLinks/includes/specials/SpecialInterWikiLinks.class.php
D InterWikiLinks/resources/BS.InterWikiLinks/InsertLink/FormPanelInterWiki.js
D InterWikiLinks/resources/BS.InterWikiLinks/InterWikiLinksDialog.js
D InterWikiLinks/resources/BS.InterWikiLinks/Panel.js
D InterWikiLinks/resources/bluespice.insertLink.interWikiLinks.js
D InterWikiLinks/resources/bluespice.interWikiLinks.js
D InterWikiLinks/tests/phpunit/BSApiTasksInterWikiLinksManagerTest.php
57 files changed, 0 insertions(+), 2,136 deletions(-)

Approvals:
  Ljonka: Verified; Looks good to me, approved
  Raimond Spekking: Looks good to me, but someone else must approve



diff --git a/InterWikiLinks/InterWikiLinks.class.php 
b/InterWikiLinks/InterWikiLinks.class.php
deleted file mode 100644
index 37bc788..000
--- a/InterWikiLinks/InterWikiLinks.class.php
+++ /dev/null
@@ -1,125 +0,0 @@
-http://www.bluespice.com
- *
- * @author Markus Glaser 
- * @author Leonid Verhovskij 
- * @author Sebastian Ulbricht 
- * @version2.27
- * @packageBlueSpice_Extensions
- * @subpackage InterWikiLinks
- * @copyright  Copyright (C) 2016 Hallo Welt! GmbH, All rights reserved.
- * @licensehttp://www.gnu.org/copyleft/gpl.html GNU Public License v2 or 
later
- * @filesource
- */
-
-/**
- * Main class for InterWikiLinks extension
- * @package BlueSpice_Extensions
- * @subpackage InterWikiLinks
- */
-class InterWikiLinks extends BsExtensionMW {
-
-   /**
-* Constructor of InterWikiLinks class
-*/
-   public function __construct() {
-   wfProfileIn( 'BS::'.__METHOD__ );
-   WikiAdmin::registerModule( 'InterWikiLinks', [
-   'image' => 
'/extensions/BlueSpiceExtensions/WikiAdmin/resources/images/bs-btn_interwikilinks_v1.png',
-   'level' => 'wikiadmin',
-   'message' => 'bs-interwikilinks-label',
-   'iconCls' => 'bs-icon-chain',
-   'permissions' => [ 'interwikilinks-viewspecialpage' ],
-   ]);
-   wfProfileOut( 'BS::'.__METHOD__ );
-   }
-
-   protected function initExt() {
-   wfProfileIn('BS::InterWikiLinks::initExt');
-
-   $this->setHook( 'BeforePageDisplay' );
-
-   $this->mCore->registerPermission( 
'interwikilinks-viewspecialpage', array('sysop'), array( 'type' => 'global' ) );
-
-   wfProfileOut('BS::InterWikiLinks::initExt');
-   }
-
-   /**
-*
-* @param OutputPage $oOutputPage
-* @param Skin $oSkin
-* @return boolean - always true
-*/
-   public function onBeforePageDisplay( &$oOutputPage, &$oSkin ) {
-   if( !in_array($oOutputPage->getRequest()->getVal('action', 
'view'), array('edit', 'submit')) ) return true;
-   $oOutputPage->addModules('bluespice.insertLink.interWikiLinks');
-   //TODO implement ow
-   $oOutputPage->addJsConfigVars( 'BSInterWikiPr

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceInterWikiLinks[master]: Initial commit

2017-11-02 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/388007 )

Change subject: Initial commit
..


Initial commit

Removes from BlueSpiceExtensions:
- https://gerrit.wikimedia.org/r/#/c/387182/
- https://gerrit.wikimedia.org/r/#/c/387184/

Change-Id: Iec6e7140f7e6bac53e91009b25df07b1d2c6fac1
ERM: #7929
---
A .gitreview
A CODE_OF_CONDUCT.md
A InterWikiLinks.class.php
A composer.json
A extension.json
A i18n/ar.json
A i18n/ast.json
A i18n/ba.json
A i18n/bho.json
A i18n/bn.json
A i18n/br.json
A i18n/ce.json
A i18n/cv.json
A i18n/de-formal.json
A i18n/de.json
A i18n/diq.json
A i18n/en.json
A i18n/es.json
A i18n/eu.json
A i18n/fa.json
A i18n/fr.json
A i18n/fy.json
A i18n/gl.json
A i18n/he.json
A i18n/hu.json
A i18n/ia.json
A i18n/it.json
A i18n/ja.json
A i18n/ko.json
A i18n/ksh.json
A i18n/lb.json
A i18n/lt.json
A i18n/mk.json
A i18n/mr.json
A i18n/ne.json
A i18n/nl.json
A i18n/oc.json
A i18n/pl.json
A i18n/ps.json
A i18n/pt-br.json
A i18n/pt.json
A i18n/qqq.json
A i18n/ru.json
A i18n/sd.json
A i18n/sl.json
A i18n/sv.json
A i18n/tr.json
A i18n/uk.json
A i18n/zh-hans.json
A i18n/zh-hant.json
A includes/api/BSApiTasksInterWikiLinksManager.php
A includes/specials/SpecialInterWikiLinks.alias.php
A includes/specials/SpecialInterWikiLinks.class.php
A resources/BS.InterWikiLinks/InsertLink/FormPanelInterWiki.js
A resources/BS.InterWikiLinks/InterWikiLinksDialog.js
A resources/BS.InterWikiLinks/Panel.js
A resources/bluespice.insertLink.interWikiLinks.js
A resources/bluespice.interWikiLinks.js
A tests/phpunit/BSApiTasksInterWikiLinksManagerTest.php
59 files changed, 2,158 insertions(+), 0 deletions(-)

Approvals:
  Ljonka: Verified; Looks good to me, approved
  Raimond Spekking: Looks good to me, but someone else must approve



diff --git a/.gitreview b/.gitreview
new file mode 100644
index 000..efb1f7e
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,5 @@
+[gerrit]
+host=gerrit.wikimedia.org
+port=29418
+project=mediawiki/extensions/BlueSpiceInterWikiLinks.git
+track=1
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 000..d8e5d08
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1 @@
+The development of this software is covered by a [Code of 
Conduct](https://www.mediawiki.org/wiki/Code_of_Conduct).
diff --git a/InterWikiLinks.class.php b/InterWikiLinks.class.php
new file mode 100644
index 000..37bc788
--- /dev/null
+++ b/InterWikiLinks.class.php
@@ -0,0 +1,125 @@
+http://www.bluespice.com
+ *
+ * @author Markus Glaser 
+ * @author Leonid Verhovskij 
+ * @author Sebastian Ulbricht 
+ * @version2.27
+ * @packageBlueSpice_Extensions
+ * @subpackage InterWikiLinks
+ * @copyright  Copyright (C) 2016 Hallo Welt! GmbH, All rights reserved.
+ * @licensehttp://www.gnu.org/copyleft/gpl.html GNU Public License v2 or 
later
+ * @filesource
+ */
+
+/**
+ * Main class for InterWikiLinks extension
+ * @package BlueSpice_Extensions
+ * @subpackage InterWikiLinks
+ */
+class InterWikiLinks extends BsExtensionMW {
+
+   /**
+* Constructor of InterWikiLinks class
+*/
+   public function __construct() {
+   wfProfileIn( 'BS::'.__METHOD__ );
+   WikiAdmin::registerModule( 'InterWikiLinks', [
+   'image' => 
'/extensions/BlueSpiceExtensions/WikiAdmin/resources/images/bs-btn_interwikilinks_v1.png',
+   'level' => 'wikiadmin',
+   'message' => 'bs-interwikilinks-label',
+   'iconCls' => 'bs-icon-chain',
+   'permissions' => [ 'interwikilinks-viewspecialpage' ],
+   ]);
+   wfProfileOut( 'BS::'.__METHOD__ );
+   }
+
+   protected function initExt() {
+   wfProfileIn('BS::InterWikiLinks::initExt');
+
+   $this->setHook( 'BeforePageDisplay' );
+
+   $this->mCore->registerPermission( 
'interwikilinks-viewspecialpage', array('sysop'), array( 'type' => 'global' ) );
+
+   wfProfileOut('BS::InterWikiLinks::initExt');
+   }
+
+   /**
+*
+* @param OutputPage $oOutputPage
+* @param Skin $oSkin
+* @return boolean - always true
+*/
+   public function onBeforePageDisplay( &$oOutputPage, &$oSkin ) {
+   if( !in_array($oOutputPage->getRequest()->getVal('action', 
'view'), array('edit', 'submit')) ) return true;
+   $oOutputPage->addModules('bluespice.insertLink.interWikiLinks');
+   //TODO implement ow
+   $oOutputPage->addJsConfigVars( 'BSInterWikiPrefixes', 
$this->getInterWikiLinkPrefixes() );
+
+   return true;
+   }
+
+   public static function getInterWikiLinkPrefixes() {
+   $oDbr = wfGetDB( DB_REPLICA );
+   $rRes = $oDbr->select(
+   'interwiki',
+   'iw_prefix',
+  

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: UserManager: remove NamespaceManager dependency

2017-10-27 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/386816 )

Change subject: UserManager: remove NamespaceManager dependency
..

UserManager: remove NamespaceManager dependency

Change-Id: Ic44b06e384ac0e69a93c6adfc403700aca77a382
---
M UserSidebar/UserSidebar.class.php
1 file changed, 18 insertions(+), 1 deletion(-)


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

diff --git a/UserSidebar/UserSidebar.class.php 
b/UserSidebar/UserSidebar.class.php
index b2f92b0..73b61ea 100644
--- a/UserSidebar/UserSidebar.class.php
+++ b/UserSidebar/UserSidebar.class.php
@@ -270,9 +270,13 @@
if( !isset( $aLink['attr']['class'] ) ) {
$aLink['attr']['class'] = '';
}
+
+   $constName = $this->getNSConstName( 
$oTitle->getNamespaceKey() );
+
+
$aLink['attr']['class'] .= ' bs-globalactions-items';
$aLink['attr']['class'] .= ' bs-globalaction-';
-   $aLink['attr']['class'] .= strtolower( 
NamespaceManager::getNamespaceConstName( $oTitle->getNamespace(), array() ) );
+   $aLink['attr']['class'] .= strtolower( $constName );
$aLink['attr']['class'] .=  '-' . $sClass;
 
if( empty($aLink['text']) ) {
@@ -299,6 +303,19 @@
;
}
 
+   protected function getNSConstName( $nsKey ) {
+   $constants = get_defined_constants();
+
+   $constName = null;
+   foreach ( $constants as $name => $value ) {
+   if ( $nsKey == $value && strpos( $name, "NS_" ) !== 
FALSE ) {
+   $constName = $name;
+   break;
+   }
+   }
+   return $constName;
+   }
+
/**
 * Returns the widgets for the global actions tab
 * @param User $oUser The current MediaWiki User object

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic44b06e384ac0e69a93c6adfc403700aca77a382
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: Removed ExtendedSearch

2017-10-19 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/385183 )

Change subject: Removed ExtendedSearch
..


Removed ExtendedSearch

* Removed SOLR based ExtendedSearch
* Will be replaced by Elastic based BlueSpiceExtendedSearch

Change-Id: I4c564eef42e836fbff0c1d14ed4e10353b4d19e5
---
M BlueSpiceExtensions.default.php
D ExtendedSearch/ExtendedSearch.class.php
D ExtendedSearch/ExtendedSearch.setup.php
D ExtendedSearch/api/ApiFeedExtendedSearch.php
D ExtendedSearch/db/ExtendedSearch.idx_bs_searchstats_ttu.pg.sql
D ExtendedSearch/db/ExtendedSearch.oci.sql
D ExtendedSearch/db/ExtendedSearch.pg.sql
D ExtendedSearch/db/ExtendedSearch.sql
D ExtendedSearch/db/ExtendedSearch.stats_scope.patch.sql
D ExtendedSearch/doc/Apache_Solr_Document.example
D ExtendedSearch/doc/BlueSpice_ExtendedSearch_Feed_API.OSDX
D ExtendedSearch/doc/Hooks.txt
D ExtendedSearch/doc/README.txt
D ExtendedSearch/doc/descriptor.xml
D ExtendedSearch/extension.json
D ExtendedSearch/i18n/ais.json
D ExtendedSearch/i18n/ar.json
D ExtendedSearch/i18n/as.json
D ExtendedSearch/i18n/ast.json
D ExtendedSearch/i18n/ba.json
D ExtendedSearch/i18n/bcc.json
D ExtendedSearch/i18n/be-tarask.json
D ExtendedSearch/i18n/bg.json
D ExtendedSearch/i18n/bgn.json
D ExtendedSearch/i18n/bn.json
D ExtendedSearch/i18n/br.json
D ExtendedSearch/i18n/bs.json
D ExtendedSearch/i18n/ca.json
D ExtendedSearch/i18n/ce.json
D ExtendedSearch/i18n/cnh.json
D ExtendedSearch/i18n/crh-cyrl.json
D ExtendedSearch/i18n/crh-latn.json
D ExtendedSearch/i18n/cs.json
D ExtendedSearch/i18n/cu.json
D ExtendedSearch/i18n/cv.json
D ExtendedSearch/i18n/de-formal.json
D ExtendedSearch/i18n/de.json
D ExtendedSearch/i18n/diq.json
D ExtendedSearch/i18n/dty.json
D ExtendedSearch/i18n/en-gb.json
D ExtendedSearch/i18n/en.json
D ExtendedSearch/i18n/eo.json
D ExtendedSearch/i18n/es.json
D ExtendedSearch/i18n/eu.json
D ExtendedSearch/i18n/fa.json
D ExtendedSearch/i18n/fi.json
D ExtendedSearch/i18n/fr.json
D ExtendedSearch/i18n/fy.json
D ExtendedSearch/i18n/gl.json
D ExtendedSearch/i18n/gn.json
D ExtendedSearch/i18n/he.json
D ExtendedSearch/i18n/hi.json
D ExtendedSearch/i18n/hsn.json
D ExtendedSearch/i18n/hu.json
D ExtendedSearch/i18n/hy.json
D ExtendedSearch/i18n/ia.json
D ExtendedSearch/i18n/id.json
D ExtendedSearch/i18n/inh.json
D ExtendedSearch/i18n/it.json
D ExtendedSearch/i18n/ja.json
D ExtendedSearch/i18n/jv.json
D ExtendedSearch/i18n/ka.json
D ExtendedSearch/i18n/kk-cyrl.json
D ExtendedSearch/i18n/ko.json
D ExtendedSearch/i18n/krc.json
D ExtendedSearch/i18n/ksh.json
D ExtendedSearch/i18n/ku-latn.json
D ExtendedSearch/i18n/lb.json
D ExtendedSearch/i18n/lki.json
D ExtendedSearch/i18n/lt.json
D ExtendedSearch/i18n/mk.json
D ExtendedSearch/i18n/mr.json
D ExtendedSearch/i18n/mt.json
D ExtendedSearch/i18n/mwl.json
D ExtendedSearch/i18n/my.json
D ExtendedSearch/i18n/myv.json
D ExtendedSearch/i18n/nds-nl.json
D ExtendedSearch/i18n/ne.json
D ExtendedSearch/i18n/nl.json
D ExtendedSearch/i18n/oc.json
D ExtendedSearch/i18n/om.json
D ExtendedSearch/i18n/pl.json
D ExtendedSearch/i18n/ps.json
D ExtendedSearch/i18n/pt-br.json
D ExtendedSearch/i18n/pt.json
D ExtendedSearch/i18n/qqq.json
D ExtendedSearch/i18n/roa-tara.json
D ExtendedSearch/i18n/ru.json
D ExtendedSearch/i18n/sd.json
D ExtendedSearch/i18n/sl.json
D ExtendedSearch/i18n/sr-ec.json
D ExtendedSearch/i18n/sr-el.json
D ExtendedSearch/i18n/sv.json
D ExtendedSearch/i18n/tay.json
D ExtendedSearch/i18n/tcy.json
D ExtendedSearch/i18n/tg-cyrl.json
D ExtendedSearch/i18n/tl.json
D ExtendedSearch/i18n/tr.json
D ExtendedSearch/i18n/udm.json
D ExtendedSearch/i18n/uk.json
D ExtendedSearch/i18n/zgh.json
D ExtendedSearch/i18n/zh-hans.json
D ExtendedSearch/i18n/zh-hant.json
D ExtendedSearch/includes/BuildIndex/AbstractBuildIndexAll.class.php
D ExtendedSearch/includes/BuildIndex/AbstractBuildIndexFile.class.php
D ExtendedSearch/includes/BuildIndex/AbstractBuildIndexLinked.class.php
D ExtendedSearch/includes/BuildIndex/AbstractBuildIndexMwLinked.class.php
D ExtendedSearch/includes/BuildIndex/BuildIndexMainControl.class.php
D ExtendedSearch/includes/BuildIndex/BuildIndexMwArticles.class.php
D ExtendedSearch/includes/BuildIndex/BuildIndexMwExternalRepository.class.php
D ExtendedSearch/includes/BuildIndex/BuildIndexMwLinked.class.php
D ExtendedSearch/includes/BuildIndex/BuildIndexMwRepository.class.php
D ExtendedSearch/includes/BuildIndex/BuildIndexMwSingleFile.class.php
D ExtendedSearch/includes/BuildIndex/BuildIndexMwSpecial.class.php
D ExtendedSearch/includes/BuildIndex/BuildIndexMwSpecialLinked.class.php
D ExtendedSearch/includes/BuildIndex/index_progress.php
D ExtendedSearch/includes/ExtendedSearchBase.class.php
D ExtendedSearch/includes/Handler/TagCloudSearchStatsHandler.class.php
D ExtendedSearch/includes/SearchIndex/SearchIndex.class.php
D ExtendedSearch/includes/SearchIndex/SearchOptions.class.php
D ExtendedSearch/includes/SearchIndex/SearchRequest.class.php
D ExtendedSearch/

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[REL1_27]: RSSStandards: Fix param types in Category and Watchlist

2017-10-18 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/384988 )

Change subject: RSSStandards: Fix param types in Category and Watchlist
..

RSSStandards: Fix param types in Category and Watchlist

Change-Id: Ic21cd5e02ae6e07500fc953bb6b779a263ed798c
---
M RSSStandards/RSSStandards.class.php
1 file changed, 2 insertions(+), 2 deletions(-)


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

diff --git a/RSSStandards/RSSStandards.class.php 
b/RSSStandards/RSSStandards.class.php
index 8bc55c8..503b9ef 100644
--- a/RSSStandards/RSSStandards.class.php
+++ b/RSSStandards/RSSStandards.class.php
@@ -291,7 +291,7 @@
$_description = preg_replace(
"#\[(.*)<\/a>\]#",
"",
-   $this->mCore->parseWikiText( 
$page->getContent(), $this->getTitle() )
+   $this->mCore->parseWikiText( 
$page->getContent()->getNativeData(), $this->getTitle() )
);
 
$item = RSSItemCreator::createItem( $_title, 
$_link, $_description );
@@ -435,7 +435,7 @@
$sub .= '' . SpecialEditWatchlist::buildTools( 
$this->getSkin() );
$wgOut->setSubtitle( $sub );
 
-   if( ( $mode = SpecialEditWatchlist::getMode( $wgRequest, $par ) 
) !== false ) {
+   if( ( $mode = SpecialEditWatchlist::getMode( $wgRequest, "" ) ) 
!== false ) {
$editor = new SpecialEditWatchlist();
$editor->execute( $user, $wgOut, $wgRequest, $mode );
return;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic21cd5e02ae6e07500fc953bb6b779a263ed798c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: REL1_27
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceSubPageTree[master]: i18n: Add basics and extension description

2017-10-16 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/384485 )

Change subject: i18n: Add basics and extension description
..

i18n: Add basics and extension description

Change-Id: I88b156190de0b55819e6f7db9ef4bea9e188ad22
---
M extension.json
A i18n/en.json
A i18n/qqq.json
3 files changed, 17 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceSubPageTree 
refs/changes/85/384485/1

diff --git a/extension.json b/extension.json
index e9fa388..1d9b578 100644
--- a/extension.json
+++ b/extension.json
@@ -4,6 +4,7 @@
"url": "https://help.bluespice.com/index.php/BlueSpiceSubPageTree";,
"author": "Leonid Verhovskij",
"type": "bluespice",
+   "descriptionmsg": "bs-subpagetree-desc",
"AutoloadClasses": {
"BlueSpiceSubPageTree": "BlueSpiceSubPageTree.class.php"
},
diff --git a/i18n/en.json b/i18n/en.json
new file mode 100644
index 000..0d337dd
--- /dev/null
+++ b/i18n/en.json
@@ -0,0 +1,8 @@
+{
+   "@metadata": {
+   "authors": [
+   "Ljonka"
+   ]
+   },
+   "bs-smartlist-desc": "Add tag \"subpagetree\" with configuration 
params, show extjs tree panel with subpage structure somewhere on a wiki page."
+}
diff --git a/i18n/qqq.json b/i18n/qqq.json
new file mode 100644
index 000..1ea3a37
--- /dev/null
+++ b/i18n/qqq.json
@@ -0,0 +1,8 @@
+{
+   "@metadata": {
+   "authors": [
+   "Ljonka"
+   ]
+   },
+   "bs-smartlist-desc": "Description of mediawiki extension bluespice 
subpage tree."
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I88b156190de0b55819e6f7db9ef4bea9e188ad22
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceSubPageTree
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceUserManager[master]: Composer.json: Add basics for autoinstallation

2017-10-16 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/384482 )

Change subject: Composer.json: Add basics for autoinstallation
..

Composer.json: Add basics for autoinstallation

Change-Id: I1fee7a77e149809f27bf6e41143dcd46e48d3572
---
M composer.json
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceUserManager 
refs/changes/82/384482/1

diff --git a/composer.json b/composer.json
index 5acf101..1da1ef4 100644
--- a/composer.json
+++ b/composer.json
@@ -1,4 +1,11 @@
 {
+   "name": "mediawiki/blue-spice-user-manager",
+   "type": "mediawiki-extension",
+   "description": "Administration interface for adding, editing and 
deleting users",
+   "license": "GPL-3.0",
+   "require": {
+   "composer/installers": "~1.0"
+   },
"autoload" : {
"psr-4": {
"BS\\UserManager\\": "src",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1fee7a77e149809f27bf6e41143dcd46e48d3572
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceUserManager
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceSubPageTree[master]: Composer.json: Add basics for autoinstallation

2017-10-16 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/384481 )

Change subject: Composer.json: Add basics for autoinstallation
..

Composer.json: Add basics for autoinstallation

Change-Id: I949fd655c3f0002ab634f13837483c529b06256b
---
M composer.json
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceSubPageTree 
refs/changes/81/384481/1

diff --git a/composer.json b/composer.json
index aebd773..8927301 100644
--- a/composer.json
+++ b/composer.json
@@ -1,4 +1,11 @@
 {
+   "name": "mediawiki/blue-spice-sub-page-tree",
+   "type": "mediawiki-extension",
+   "description": "make  tag 
available and show extjs tree panel with subpage structure",
+   "license": "GPL-3.0",
+   "require": {
+   "composer/installers": "~1.0"
+   },
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
"jakub-onderka/php-console-highlighter": "0.3.2"

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I949fd655c3f0002ab634f13837483c529b06256b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceSubPageTree
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceSmartlist[master]: Composer.json: Add basics for autoinstallation

2017-10-16 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/384479 )

Change subject: Composer.json: Add basics for autoinstallation
..

Composer.json: Add basics for autoinstallation

Change-Id: I4c123f54f4a2a0ecd8f3052006470e0081bb664f
---
M composer.json
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceSmartlist 
refs/changes/79/384479/1

diff --git a/composer.json b/composer.json
index f2a13f9..da055c7 100644
--- a/composer.json
+++ b/composer.json
@@ -1,4 +1,11 @@
 {
+   "name": "mediawiki/blue-spice-smart-list",
+   "type": "mediawiki-extension",
+   "description": "Displays the last five changes of the wiki in a list",
+   "license": "GPL-3.0",
+   "require": {
+   "composer/installers": "~1.0"
+   },
"autoload": {
"psr-4": {
}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4c123f54f4a2a0ecd8f3052006470e0081bb664f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceSmartlist
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceSignHere[master]: Composer.json: Add basics for autoinstallation

2017-10-16 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/384478 )

Change subject: Composer.json: Add basics for autoinstallation
..

Composer.json: Add basics for autoinstallation

Change-Id: I6e6c6a4be2eb660d2a0c95b9abccdb5c5846e2c7
---
M composer.json
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceSignHere 
refs/changes/78/384478/1

diff --git a/composer.json b/composer.json
index 7754fe3..c9d0b0b 100644
--- a/composer.json
+++ b/composer.json
@@ -1,4 +1,11 @@
 {
+   "name": "mediawiki/blue-spice-sign-here",
+   "type": "mediawiki-extension",
+   "description": "Provides a tag to quickly add a signature to a page",
+   "license": "GPL-3.0",
+   "require": {
+   "composer/installers": "~1.0"
+   },
"autoload" : {
"psr-4": {
"BS\\SignHere\\Tests\\": "tests/phpunit",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6e6c6a4be2eb660d2a0c95b9abccdb5c5846e2c7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceSignHere
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpicePageVersion[master]: Composer.json: Add basics for autoinstallation

2017-10-16 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/384477 )

Change subject: Composer.json: Add basics for autoinstallation
..

Composer.json: Add basics for autoinstallation

Change-Id: I89058f99237cc6ad95da63a8b9317dc406442b27
---
M composer.json
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpicePageVersion 
refs/changes/77/384477/1

diff --git a/composer.json b/composer.json
index fed8234..cfcb250 100644
--- a/composer.json
+++ b/composer.json
@@ -1,4 +1,11 @@
 {
+   "name": "mediawiki/blue-spice-page-version",
+   "type": "mediawiki-extension",
+   "description": "Provides variables and other functions about page 
revisions",
+   "license": "GPL-3.0",
+   "require": {
+   "composer/installers": "~1.0"
+   },
"autoload": {
"psr-4": {
"BS\\PageVersion\\Tests\\": "tests/phpunit",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I89058f99237cc6ad95da63a8b9317dc406442b27
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpicePageVersion
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpicePageTemplates[master]: Composer.json: Add basics for autoinstallation

2017-10-16 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/384476 )

Change subject: Composer.json: Add basics for autoinstallation
..

Composer.json: Add basics for autoinstallation

Change-Id: I3aa1581fb4f72f0deb6db2052af4fc5d05faef86
---
M composer.json
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpicePageTemplates 
refs/changes/76/384476/1

diff --git a/composer.json b/composer.json
index f2a13f9..682a0c1 100644
--- a/composer.json
+++ b/composer.json
@@ -1,4 +1,11 @@
 {
+   "name": "mediawiki/blue-spice-page-templates",
+   "type": "mediawiki-extension",
+   "description": "Displays a list of templates marked as page templates",
+   "license": "GPL-3.0",
+   "require": {
+   "composer/installers": "~1.0"
+   },
"autoload": {
"psr-4": {
}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3aa1581fb4f72f0deb6db2052af4fc5d05faef86
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpicePageTemplates
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpicePageAssignments[master]: Composer.json: Add basics for autoinstallation

2017-10-16 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/384475 )

Change subject: Composer.json: Add basics for autoinstallation
..

Composer.json: Add basics for autoinstallation

Change-Id: If3f33d14fd649d40cfd366f44d97f868cf3c6839
---
M composer.json
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpicePageAssignments 
refs/changes/75/384475/1

diff --git a/composer.json b/composer.json
index 1546725..6e6ee06 100644
--- a/composer.json
+++ b/composer.json
@@ -1,4 +1,11 @@
 {
+   "name": "mediawiki/blue-spice-page-assignments",
+   "type": "mediawiki-extension",
+   "description": "Enables you to assign users or groups to a page",
+   "license": "GPL-3.0",
+   "require": {
+   "composer/installers": "~1.0"
+   },
"autoload" : {
"psr-4": {
"BS\\PageAssignments\\": "src",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If3f33d14fd649d40cfd366f44d97f868cf3c6839
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpicePageAssignments
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceMultiUpload[master]: Composer.json: Add basics for autoinstallation

2017-10-16 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/384473 )

Change subject: Composer.json: Add basics for autoinstallation
..

Composer.json: Add basics for autoinstallation

Change-Id: I517753986a6f4f21182f757c756716295be8d5f9
---
M composer.json
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceMultiUpload 
refs/changes/73/384473/1

diff --git a/composer.json b/composer.json
index aebd773..a957080 100644
--- a/composer.json
+++ b/composer.json
@@ -1,4 +1,11 @@
 {
+   "name": "mediawiki/blue-spice-multi-upload",
+   "type": "mediawiki-extension",
+   "description": "Provides batch uploading of files",
+   "license": "GPL-3.0",
+   "require": {
+   "composer/installers": "~1.0"
+   },
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
"jakub-onderka/php-console-highlighter": "0.3.2"

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I517753986a6f4f21182f757c756716295be8d5f9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceMultiUpload
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtendedStatistics[master]: Composer.json: Add basics for autoinstallation

2017-10-16 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/384471 )

Change subject: Composer.json: Add basics for autoinstallation
..

Composer.json: Add basics for autoinstallation

Change-Id: I40d362a4d8e8644203966c070fcc82e6de91b235
---
M composer.json
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtendedStatistics
 refs/changes/71/384471/1

diff --git a/composer.json b/composer.json
index 3575e4a..24c0aa4 100644
--- a/composer.json
+++ b/composer.json
@@ -1,4 +1,11 @@
 {
+   "name": "mediawiki/blue-spice-extended-statistics",
+   "type": "mediawiki-extension",
+   "description": "Statistics module for BlueSpice",
+   "license": "GPL-3.0",
+   "require": {
+   "composer/installers": "~1.0"
+   },
"autoload" : {
"psr-4": {
"BlueSpice\\ExtendedStatistics\\Tests\\" : 
"tests/phpunit",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I40d362a4d8e8644203966c070fcc82e6de91b235
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtendedStatistics
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtendedSearch[master]: Composer.json: Add basics for autoinstallation

2017-10-16 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/384470 )

Change subject: Composer.json: Add basics for autoinstallation
..

Composer.json: Add basics for autoinstallation

Change-Id: Ifed5669f60e12b23b9a485dddab8dcd0a397cc32
---
M composer.json
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtendedSearch 
refs/changes/70/384470/1

diff --git a/composer.json b/composer.json
index 965aadd..50960db 100644
--- a/composer.json
+++ b/composer.json
@@ -1,5 +1,10 @@
 {
+   "name": "mediawiki/blue-spice-extended-search",
+   "type": "mediawiki-extension",
+   "description": "Elasticsearch search backend for BlueSpice MediaWiki",
+   "license": "GPL-3.0",
"require": {
+   "composer/installers": "~1.0",
"ruflin/elastica": "~5"
},
"require-dev": {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifed5669f60e12b23b9a485dddab8dcd0a397cc32
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtendedSearch
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceAuthors[master]: Composer.json: Add basics for autoinstallation

2017-10-16 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/384469 )

Change subject: Composer.json: Add basics for autoinstallation
..

Composer.json: Add basics for autoinstallation

Change-Id: Ic241c11ad4fb54ac01401bb9ae7f51b2dab3d472
---
M composer.json
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceAuthors 
refs/changes/69/384469/1

diff --git a/composer.json b/composer.json
index b9eb0a0..ae1efeb 100644
--- a/composer.json
+++ b/composer.json
@@ -1,4 +1,11 @@
 {
+   "name": "mediawiki/blue-spice-authors",
+   "type": "mediawiki-extension",
+   "description": "Displays the profile picture for authors of a page",
+   "license": "GPL-3.0",
+   "require": {
+   "composer/installers": "~1.0"
+   },
"autoload" : {
"psr-4": {
"BlueSpice\\Authors\\" : "src"

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic241c11ad4fb54ac01401bb9ae7f51b2dab3d472
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceAuthors
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceCategoryManager[master]: remove deprecated wikiadmin usage, todo: implement new alter...

2017-10-10 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/383344 )

Change subject: remove deprecated wikiadmin usage, todo: implement new 
alternative for wikiadmin listing
..

remove deprecated wikiadmin usage, todo: implement new alternative for 
wikiadmin listing

Change-Id: I1656dbc603bb9cdc305564d89a5ab0631f2324a1
---
M includes/BlueSpiceCategoryManager.php
1 file changed, 0 insertions(+), 13 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceCategoryManager 
refs/changes/44/383344/1

diff --git a/includes/BlueSpiceCategoryManager.php 
b/includes/BlueSpiceCategoryManager.php
index 73b2db7..158bfd6 100644
--- a/includes/BlueSpiceCategoryManager.php
+++ b/includes/BlueSpiceCategoryManager.php
@@ -1,18 +1,5 @@
  
'/extensions/BlueSpiceCategoryManager/resources/images/bs-btn_categorymanager.png',
-   'level' => 'wikiadmin',
-   'message' => 'bs-categorymanager-label',
-   'iconCls' => 'bs-icon-tag',
-   'permissions' => [ 'categorymanager-viewspecialpage' ],
-   ) );
-   wfProfileOut( 'BS::'.__METHOD__ );
-   }
-
protected function initExt() {
BsCore::getInstance()->registerPermission( 
'categorymanager-viewspecialpage', array( 'sysop' ), array( 'type' => 'global' 
) );
}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1656dbc603bb9cdc305564d89a5ab0631f2324a1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceCategoryManager
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceSkin[master]: Skin Loading:

2017-10-10 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/383343 )

Change subject: Skin Loading:
..

Skin Loading:

remove dependency of bluespice as its name is not stable
change skin name and composer/installer usage for installer-name to override 
name usage

Change-Id: I95ca782ac859e7077a1fbd4b301a633e24d54df5
---
M composer.json
M skin.json
2 files changed, 3 insertions(+), 8 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/BlueSpiceSkin 
refs/changes/43/383343/1

diff --git a/composer.json b/composer.json
index 5c875eb..1d68729 100644
--- a/composer.json
+++ b/composer.json
@@ -5,10 +5,8 @@
"require": {
"composer/installers": "~1.0"
},
-   "autoload": {
-   "files": [
-   "BlueSpiceSkin.php"
-   ]
+   "extra": {
+   "installer-name": "BlueSpiceSkin"
},
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
diff --git a/skin.json b/skin.json
index a51439a..e2c53df 100644
--- a/skin.json
+++ b/skin.json
@@ -103,10 +103,7 @@
"SkinTemplateOutputPageBeforeExec": 
"BlueSpiceSkinHooks::onSkinTemplateOutputPageBeforeExec"
},
"requires": {
-   "MediaWiki": ">= 1.27.0",
-   "extensions": {
-   "BlueSpice": ">= 2.27"
-   }
+   "MediaWiki": ">= 1.27.0"
},
"manifest_version": 2
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I95ca782ac859e7077a1fbd4b301a633e24d54df5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/skins/BlueSpiceSkin
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: CSyntaxHighlight: shCode.js - load only once to prevent js e...

2017-09-29 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/381452 )

Change subject: CSyntaxHighlight: shCode.js - load only once to prevent js error
..

CSyntaxHighlight: shCode.js - load only once to prevent js error

should be merged to REL1_27 to

Change-Id: I167536af392703e3c83902403c6ab67de56f4262
---
M CSyntaxHighlight/resources/shCore.js
1 file changed, 4 insertions(+), 2 deletions(-)


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

diff --git a/CSyntaxHighlight/resources/shCore.js 
b/CSyntaxHighlight/resources/shCore.js
index b47b645..6475c64 100644
--- a/CSyntaxHighlight/resources/shCore.js
+++ b/CSyntaxHighlight/resources/shCore.js
@@ -7,11 +7,13 @@
  *
  * @version
  * 3.0.83 (July 02 2010)
- * 
+ *
  * @copyright
  * Copyright (C) 2004-2010 Alex Gorbatchev.
  *
  * @license
  * Dual licensed under the MIT and GPL licenses.
  */
-eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return
 d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new 
RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('K M;I(M)1S 2U("2a\'t 4k M 4K 2g 
3l 4G 4H");(6(){6 r(f,e){I(!M.1R(f))1S 3m("3s 15 4R");K 
a=f.1w;f=M(f.1m,t(f)+(e||""));I(a)f.1w={1m:a.1m,19:a.19?a.19.1a(0):N};H f}6 
t(f){H(f.1J?"g":"")+(f.4s?"i":"")+(f.4p?"m":"")+(f.4v?"x":"")+(f.3n?"y":"")}6 
B(f,e,a,b){K 
c=u.L,d,h,g;v=R;5K{O(;c--;){g=u[c];I(a&g.3r&&(!g.2p||g.2p.W(b))){g.2q.12=e;I((h=g.2q.X(f))&&h.P===e){d={3k:g.2b.W(b,h,a),1C:h};1N5v(i){1S
 i}5q{v=11}H d}6 p(f,e,a){I(3b.Z.1i)H f.1i(e,a);O(a=a||0;a-1},3d:6(g){e+=g}};c1&&p(e,"")>-1){a=15(J.1m,n.Q.W(t(J),"g",""));n.Q.W(f.1a(e.P),a,6(){O(K
 c=1;c<14.L-2;c++)I(14[c]===1d)e[c]=1d})}I(J.1w&&J.1w.19)O(K 
b=1;be.P&&J.12--}H 
e};I(!D)15.Z.1A=6(f){(f=n.X.W(J,f))&&J.1J&&!f[0].L&&J.12>f.P&&J.12--;H!!f};1r.Z.1C=6(f){M.1R(f)||(f=15(f));I(f.1J){K
 e=n.1C.1p(J,14);f.12=0;H e}H f.X(J)};1r.Z.Q=6(f,e){K a=M.1R(f),b,c;I(a&&1j 
e.58()==="3f"&&e.1i("${")===-1&&y)H n.Q.1p(J,14);I(a){I(f.1w)b=f.1w.19}Y 
f+="";I(1j e==="6")c=n.Q.W(J,f,6(){I(b){14[0]=1f 1r(14[0]);O(K 
d=0;dd.L-3;){i=1r.Z.1a.W(g,-1)+i;g=1Q.3i(g/10)}H(g?d[g]||"":"$")+i}Y{g=+i;I(g<=d.L-3)H
 d[g];g=b?p(b,i):-1;H g>-1?d[g+1]:h}})})}I(a&&f.1J)f.12=0;H 
c};1r.Z.1e=6(f,e){I(!M.1R(f))H n.1e.1p(J,14);K 
a=J+"",b=[],c=0,d,h;I(e===1d||+e<0)e=5D;Y{e=1Q.3i(+e);I(!e)H[]}O(f=M.3c(f);d=f.X(a);){I(f.12>c){b.U(a.1a(c,d.P));d.L>1&&d.P=e)1N}f.12===d.P&&f.12++}I(c===a.L){I(!n.1A.W(f,"")||h)b.U("")}Y
 b.U(a.1a(c));H b.L>e?b.1a(0,e):b};M.1h(/\\(\\?#[^)]*\\)/,6(f){H 
n.1A.W(A,f.2S.1a(f.P+f[0].L))?"":"(?:)"});M.1h(/\\((?!\\?)/,6(){J.19.U(N);H"("});M.1h(/\\(\\?<([$\\w]+)>/,6(f){J.19.U(f[1]);J.2N=R;H"("});M.1h(/k<([\\w$]+)>/,6(f){K
 e=p(J.19,f[1]);H 
e>-1?""+(e+1)+(3R(f.2S.3a(f.P+f[0].L))?"":"(?:)"):f[0]});M.1h(/\\[\\^?]/,6(f){H
 
f[0]==="[]"?"bB":"[sS]"});M.1h(/^\\(\\?([5A]+)\\)/,6(f){J.3d(f[1]);H""});M.1h(/(?:\\s+|#.*)+/,6(f){H
 n.1A.W(A,f.2S.1a(f.P+f[0].L))?"":"(?:)"},M.1B,6(){H 
J.2K("x")});M.1h(/\\./,6(){H"[sS]"},M.1B,6(){H J.2K("s")})})();1j 
2e!="1d"&&(2e.M=M);K 1v=6(){6 r(a,b){a.1l.1i(b)!=-1||(a.1l+=" "+b)}6 t(a){H 
a.1i("3e")==0?a:"3e"+a}6 B(a){H e.1Y.2A[t(a)]}6 p(a,b,c){I(a==N)H N;K 
d=c!=R?a.3G:[a.2G],h={"#":"1c",".":"1l"}[b.1o(0,1)]||"3h",g,i;g=h!="3h"?b.1o(1):b.5u();I((a[h]||"").1i(g)!=-1)H
 a;O(a=0;d&&a\'+c+""});H a}6 n(a,b){a.1e("\\n");O(K c="",d=0;d<50;d++)c+=" 
   ";H a=v(a,6(h){I(h.1i("\\t")==-1)H h;O(K 
g=0;(g=h.1i("\\t"))!=-1;)h=h.1o(0,g)+c.1o(0,b-g%b)+h.1o(g+1,h.L);H h})}6 x(a){H 
a.Q(/^\\s+|\\s+$/g,"")}6 D(a,b){I(a.Pb.P)H 1;Y I(a.Lb.L)H 1;H 0}6 y(a,b){6 c(k){H k[0]}O(K 
d=N,h=[],g=b.2D?b.2D:c;(d=b.1I.X(a))!=N;){K i=g(d,b);I(1j i=="3f")i=[1f 
e.2L(i,d.P,b.23)];h=h.1O(i)}H h}6 E(a){K b=/(.*)((&1G;|&1y;).*)/;H 
a.Q(e.3A.3M,6(c){K d="",h=N;I(h=b.X(c)){c=h[1];d=h[2]}H\'\'+c+""+d})}6 z(){O(K 
a=1E.36("1k"),b=[],c=0;c<1z 4I="1Z://2y.3L.3K/4L/5L"><3J><4N 
1Z-4M="5G-5M" 6K="2O/1z; 6J=6I-8" /><1t>6L 1v<3B 
1L="25-6M:6Q,6P,6O,6N-6F;6y-2f:#6x;2f:#6w;25-22:6v;2O-3D:3C;">1v3v 3.0.76 (72 73 3x)1Z://3u.2w/1v70 17 6U 71.6T 6X-3x 6Y 
6D.6t 61 60 J 1k, 5Z 5R 5V <2R/>5U 5T 
5S!\'}},1Y:{2j:N,2A:{}},1U:{},3A:{6n:/\\/\\*[\\s\\S]*?\\*\\//2c,6m:/\\/\\/.*$/2c,6l:/#.*$/2c,6k:/"([^"\\n]|.)*"/g,6o:/\'([^\'\\n]|.)*\'/g,6p:1f
 M(\'"([^"]|.)*"\',"3z"),6s:1f 
M("\'([^\']|.)*\'","3z"),6q:/(&1y;|<)!--[\\s\\S]*?--(&1G;|>)/2c,3M:/\\w+:\\/\\/[\\w-.\\/?%&=:@;]*/g,6a:{18:/(&1y;|<)\\?=?/g,1b:/\\?(&1G;|>)/g},69:{18:/(&1y;|<)%=?/g,1b:/%(&1G;|>)/g},6d:{18:/(&1y;|<)\\s*1k.*?(&1G;|>)/2T,1b:/(&1y;|<)\\/\\s*1k\\s*(&1G;|>)/2T}},16:{1H:6(a){6
 b(i,k){H e.16.2o(i,k,e.13.1x[k])}O(K c=\'\',d=e.16.2x,h=d.2X,g=0;g";H
 c},2o:6(a,b,c){H\'<2W>\'+c+""},2b:6(a){K b=a.1F,c=b.1l||"";b=B(p(b,".20",R).1c);K 
d=6(h){H(h=15(h+"6f(w+)").X(c))?h[1]:N

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceFoundation[master]: BsCore::registerBehaviorSwitch fix exists check in_array

2017-09-28 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/381191 )

Change subject: BsCore::registerBehaviorSwitch fix exists check in_array
..

BsCore::registerBehaviorSwitch fix exists check in_array

Change-Id: I90a157e46ba4cfd889948fb2d8e0814503fe5250
---
M includes/Core.class.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation 
refs/changes/91/381191/1

diff --git a/includes/Core.class.php b/includes/Core.class.php
index 2048a6b..c8023ee 100644
--- a/includes/Core.class.php
+++ b/includes/Core.class.php
@@ -570,7 +570,7 @@
public function registerBehaviorSwitch( $sMagicWord, $aCallback = null 
) {
if ( is_callable( $aCallback ) ) {
$this->aBehaviorSwitches[$sMagicWord] = $aCallback;
-   } elseif ( !isset( 
MagicWord::$mDoubleUnderscoreIDs[$sMagicWord] ) ) {
+   } elseif ( !in_array( $sMagicWord, 
MagicWord::$mDoubleUnderscoreIDs ) ) {
MagicWord::$mDoubleUnderscoreIDs[] = $sMagicWord;
}
}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I90a157e46ba4cfd889948fb2d8e0814503fe5250
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...NSFileRepo[master]: Update composer.json: provide basic infos

2017-09-28 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/381174 )

Change subject: Update composer.json: provide basic infos
..

Update composer.json: provide basic infos

Change-Id: I56a5e6cbb5678b3fdb1946f0a8fd9f4e91616436
---
M composer.json
1 file changed, 20 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/NSFileRepo 
refs/changes/74/381174/1

diff --git a/composer.json b/composer.json
index b183c89..e6f8c92 100644
--- a/composer.json
+++ b/composer.json
@@ -1,12 +1,29 @@
 {
+   "name": "mediawiki/n-s-file-repo",
+   "type": "mediawiki-extension",
+   "description": "Provide namespace based features to uploaded files",
+   "authors": [
+   {
+   "name": "Jack D. Pond",
+   "role": "Developer"
+   },
+   {
+   "name": "Robert Vogel",
+   "role": "Developer"
+   }
+   ],
+   "license": "GPL-2.0+",
+   "require": {
+   "composer/installers": "~1.0"
+   },
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
"jakub-onderka/php-console-highlighter": "0.3.2"
},
-   "autoload" : {
+   "autoload": {
"psr-4": {
-   "NSFileRepo\\Tests\\" : "tests/phpunit",
-   "NSFileRepo\\" : "src"
+   "NSFileRepo\\Tests\\": "tests/phpunit",
+   "NSFileRepo\\": "src"
}
},
"scripts": {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I56a5e6cbb5678b3fdb1946f0a8fd9f4e91616436
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/NSFileRepo
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceInsertTemplate[master]: Add composer.json

2017-09-27 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/380966 )

Change subject: Add composer.json
..

Add composer.json

Change-Id: I0c9a7c4be4dbd213641065e89600226065d06def
---
A composer.json
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceInsertTemplate 
refs/changes/66/380966/1

diff --git a/composer.json b/composer.json
new file mode 100644
index 000..a3aaf67
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,8 @@
+{
+  "name": "mediawiki/blue-spice-insert-template",
+  "type": "mediawiki-extension",
+  "description": "Dialog to insert a template",
+  "require": {
+"composer/installers": "~1.0"
+  }
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0c9a7c4be4dbd213641065e89600226065d06def
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceInsertTemplate
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtendedFilelist[master]: Composer.json: Add basic attributes

2017-09-27 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/380965 )

Change subject: Composer.json: Add basic attributes
..

Composer.json: Add basic attributes

Change-Id: Ie4ca90ee2d4a0377c9fa831472e909a891bdfd13
---
M composer.json
1 file changed, 6 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtendedFilelist 
refs/changes/65/380965/1

diff --git a/composer.json b/composer.json
index aebd773..619771c 100644
--- a/composer.json
+++ b/composer.json
@@ -1,4 +1,10 @@
 {
+   "name": "mediawiki/blue-spice-extended-filelist",
+  "type": "mediawiki-extension",
+  "description": "Provides a special page to interact with the wiki file repo",
+  "require": {
+"composer/installers": "~1.0"
+  },
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
"jakub-onderka/php-console-highlighter": "0.3.2"

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie4ca90ee2d4a0377c9fa831472e909a891bdfd13
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtendedFilelist
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceCategoryManager[master]: Add composer.json

2017-09-27 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/380958 )

Change subject: Add composer.json
..

Add composer.json

Change-Id: Idec1e473d4441d8a0573c459fa52f979c7c72028
---
A composer.json
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceCategoryManager 
refs/changes/58/380958/1

diff --git a/composer.json b/composer.json
new file mode 100644
index 000..39cf722
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,8 @@
+{
+  "name": "mediawiki/blue-spice-category-manager",
+  "type": "mediawiki-extension",
+  "description": "Visual tool to manage categories",
+  "require": {
+"composer/installers": "~1.0"
+  }
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idec1e473d4441d8a0573c459fa52f979c7c72028
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceCategoryManager
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[REL1_27]: Composer.json: cleanum requiremenet for prober dev usage

2017-09-26 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/380735 )

Change subject: Composer.json: cleanum requiremenet for prober dev usage
..

Composer.json: cleanum requiremenet for prober dev usage

Change-Id: I223492d1e565b208362e1a237453b2fead361429
---
M composer.json
1 file changed, 1 insertion(+), 1 deletion(-)


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

diff --git a/composer.json b/composer.json
index e5e90c0..acc81de 100644
--- a/composer.json
+++ b/composer.json
@@ -13,7 +13,7 @@
}
],
"require": {
-   "hallowelt/blue-spice-foundation": "2.27.2"
+   "composer/installers": "~1.0"
},
"support": {
"issues": "https://sourceforge.net/projects/bluespice/support";,

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I223492d1e565b208362e1a237453b2fead361429
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: REL1_27
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: removed moved extensions Authors Statistic

2017-09-21 Thread Ljonka (Code Review)
Ljonka has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/379522 )

Change subject: removed moved extensions Authors Statistic
..


removed moved extensions
Authors
Statistic

Change-Id: I424ee32b83c3be47aa2afdb14fc840ac65c357eb
---
M BlueSpiceExtensions.default.php
1 file changed, 0 insertions(+), 2 deletions(-)

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



diff --git a/BlueSpiceExtensions.default.php b/BlueSpiceExtensions.default.php
index c4d94b1..517bc24 100644
--- a/BlueSpiceExtensions.default.php
+++ b/BlueSpiceExtensions.default.php
@@ -14,7 +14,6 @@
 require_once( __DIR__."/RSSFeeder/RSSFeeder.setup.php" );
 require_once( __DIR__."/AboutBlueSpice/AboutBlueSpice.setup.php" );
 require_once( __DIR__."/ArticleInfo/ArticleInfo.setup.php" );
-require_once( __DIR__."/Authors/Authors.setup.php" );
 require_once( __DIR__."/Blog/Blog.setup.php" );
 require_once( __DIR__."/Checklist/Checklist.setup.php" );
 require_once( __DIR__."/ContextMenu/ContextMenu.setup.php" );
@@ -47,7 +46,6 @@
 require_once( __DIR__."/RSSStandards/RSSStandards.setup.php" );
 require_once( __DIR__."/PageAssignments/PageAssignments.setup.php" );
 require_once( __DIR__."/SaferEdit/SaferEdit.setup.php" );
-require_once( __DIR__."/Statistics/Statistics.setup.php" );
 require_once( __DIR__."/Avatars/Avatars.setup.php" );
 require_once( __DIR__."/Readers/Readers.setup.php" );
 #require_once( __DIR__."/ExtendedSearch/ExtendedSearch.setup.php" );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I424ee32b83c3be47aa2afdb14fc840ac65c357eb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Nasty 
Gerrit-Reviewer: Ljonka 
Gerrit-Reviewer: Mglaser 
Gerrit-Reviewer: Pwirth 
Gerrit-Reviewer: Robert Vogel 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtendedStatistics[refs/meta/config]: Modify access rules

2017-09-21 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/379527 )

Change subject: Modify access rules
..

Modify access rules

Change-Id: I9b1c015c0467bb716771b4ebde05e4dc6f69
---
M groups
M project.config
2 files changed, 2 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtendedStatistics
 refs/changes/27/379527/1

diff --git a/groups b/groups
index 4e1516c..a3c18a8 100644
--- a/groups
+++ b/groups
@@ -1,3 +1,4 @@
 # UUID Group Name
 #
 db4fa62c57d55db4a327f66e6d2cc39ffa2701ec   
extension-BlueSpiceExtendedStatistics
+f7087318186de2eac3b21b63abd2a145035455a3   bluespice
diff --git a/project.config b/project.config
index b8e900f..bb8e7c8 100644
--- a/project.config
+++ b/project.config
@@ -7,4 +7,5 @@
 [submit]
mergeContent = true
 [access "refs/*"]
+   owner = group bluespice
owner = group extension-BlueSpiceExtendedStatistics

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9b1c015c0467bb716771b4ebde05e4dc6f69
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtendedStatistics
Gerrit-Branch: refs/meta/config
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceEditNotifyConnector[master]: Add loader file for backward compatability

2017-09-20 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/379219 )

Change subject: Add loader file for backward compatability
..

Add loader file for backward compatability

Change-Id: Ifb4d0671792baf450c854fc041d4fb3a2b2c3f28
---
A BlueSpiceEditNotifyConnector.php
1 file changed, 13 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceEditNotifyConnector
 refs/changes/19/379219/1

diff --git a/BlueSpiceEditNotifyConnector.php b/BlueSpiceEditNotifyConnector.php
new file mode 100644
index 000..6bb3855
--- /dev/null
+++ b/BlueSpiceEditNotifyConnector.php
@@ -0,0 +1,13 @@
+https://gerrit.wikimedia.org/r/379219
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifb4d0671792baf450c854fc041d4fb3a2b2c3f28
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceEditNotifyConnector
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceFoundation[master]: Update composer.json for vcs loading

2017-09-20 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/379194 )

Change subject: Update composer.json for vcs loading
..

Update composer.json for vcs loading

Change-Id: Id845f2dc555009fc2b634d3c68fd8c3a8bec3bf0
---
M composer.json
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation 
refs/changes/94/379194/1

diff --git a/composer.json b/composer.json
index 8adb966..2b5f1a5 100644
--- a/composer.json
+++ b/composer.json
@@ -19,7 +19,8 @@
"ext-curl": "*",
"ext-gd": "*",
"ext-tidy": "*",
-   "param-processor/param-processor": "~1.2"
+   "param-processor/param-processor": "~1.2",
+   "composer/installers": "~1.0"
},
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id845f2dc555009fc2b634d3c68fd8c3a8bec3bf0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: Update composer.json for proper vcs usage

2017-09-20 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/379193 )

Change subject: Update composer.json for proper vcs usage
..

Update composer.json for proper vcs usage

Change-Id: I049fa39e2fd3904d0988466c3985a8cdb2e3
---
M composer.json
1 file changed, 6 insertions(+), 1 deletion(-)


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

diff --git a/composer.json b/composer.json
index 81ed329..c2dbe8b 100644
--- a/composer.json
+++ b/composer.json
@@ -13,7 +13,12 @@
}
],
"require": {
-   "hallowelt/blue-spice-foundation": "dev-master"
+   "composer/installers": "~1.0"
+   },
+   "autoload": {
+   "files": [
+   "BlueSpiceExtensions.php"
+   ]
},
"support": {
"issues": "https://sourceforge.net/projects/bluespice/support";,

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I049fa39e2fd3904d0988466c3985a8cdb2e3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceEditNotifyConnector[master]: Add composer.json with autoloading of extension

2017-09-19 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/378923 )

Change subject: Add composer.json with autoloading of extension
..

Add composer.json with autoloading of extension

Change-Id: I66496f16b294d87191b63b6ae7b1950b56c51d01
---
A BlueSpiceEditNotifyConnector.php
A composer.json
2 files changed, 28 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceEditNotifyConnector
 refs/changes/23/378923/1

diff --git a/BlueSpiceEditNotifyConnector.php b/BlueSpiceEditNotifyConnector.php
new file mode 100644
index 000..7580d13
--- /dev/null
+++ b/BlueSpiceEditNotifyConnector.php
@@ -0,0 +1,3 @@
+https://gerrit.wikimedia.org/r/378923
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I66496f16b294d87191b63b6ae7b1950b56c51d01
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceEditNotifyConnector
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...Variables[master]: Add composer.json for easy autoloading

2017-09-19 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/378907 )

Change subject: Add composer.json for easy autoloading
..

Add composer.json for easy autoloading

Change-Id: I10460a94ef4e7d279ac00cb5520ad1f750ac4e0d
---
A composer.json
1 file changed, 13 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Variables 
refs/changes/07/378907/1

diff --git a/composer.json b/composer.json
new file mode 100644
index 000..d68b626
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,13 @@
+{
+   "name": "mediawiki/variables",
+   "type": "mediawiki-extension",
+   "description": "The Variables extension allows you to define a variable 
on a page, use it later in that same page or included templates, change its 
value, possibly to a value given by an expression in terms of the old value, 
etc.",
+   "require": {
+   "composer/installers": "~1.0"
+   },
+   "autoload": {
+   "files": [
+   "Variables.php"
+   ]
+   }
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I10460a94ef4e7d279ac00cb5520ad1f750ac4e0d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Variables
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceSkin[master]: Add composer.json and Dependiencies check in skin.json

2017-09-19 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/378875 )

Change subject: Add composer.json and Dependiencies check in skin.json
..

Add composer.json and Dependiencies check in skin.json

Change-Id: Ia1e9ff32b77def388458878b45e1658a4575e056
---
A composer.json
M skin.json
2 files changed, 20 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/BlueSpiceSkin 
refs/changes/75/378875/1

diff --git a/composer.json b/composer.json
new file mode 100644
index 000..a9136ee
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,13 @@
+{
+   "name": "mediawiki/blue-spice-skin",
+   "type": "mediawiki-skin",
+   "description": "Skin for BlueSpice Mediawiki Extensions",
+   "require": {
+   "composer/installers": "~1.0"
+   },
+   "autoload": {
+   "files": [
+   "BlueSpiceSkin.php"
+   ]
+   }
+}
diff --git a/skin.json b/skin.json
index b006a00..a51439a 100644
--- a/skin.json
+++ b/skin.json
@@ -102,5 +102,11 @@
"SkinTemplateNavigation::Universal": 
"BlueSpiceSkinHooks::onSkinTemplateNavigationUniversal",
"SkinTemplateOutputPageBeforeExec": 
"BlueSpiceSkinHooks::onSkinTemplateOutputPageBeforeExec"
},
-   "manifest_version": 1
+   "requires": {
+   "MediaWiki": ">= 1.27.0",
+   "extensions": {
+   "BlueSpice": ">= 2.27"
+   }
+   },
+   "manifest_version": 2
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia1e9ff32b77def388458878b45e1658a4575e056
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/skins/BlueSpiceSkin
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceFoundation[master]: FileSystemHelper: use msg objects instead of plain after use...

2017-09-06 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/376260 )

Change subject: FileSystemHelper: use msg objects instead of plain after user 
language is not available at this point
..

FileSystemHelper: use msg objects instead of plain after user language is not 
available at this point

Change-Id: I8e875efcad661b88769edfd4d20a49f079a9d36f
---
M includes/utility/FileSystemHelper.class.php
1 file changed, 37 insertions(+), 37 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation 
refs/changes/60/376260/1

diff --git a/includes/utility/FileSystemHelper.class.php 
b/includes/utility/FileSystemHelper.class.php
index cc5e5f0..d392b52 100644
--- a/includes/utility/FileSystemHelper.class.php
+++ b/includes/utility/FileSystemHelper.class.php
@@ -10,7 +10,7 @@
public static function ensureCacheDirectory($sSubDirName = '') {
wfProfileIn(__METHOD__);
if (self::hasTraversal($sSubDirName))
-   return 
Status::newFatal(wfMessage("bs-filesystemhelper-has-path-traversal")->plain());
+   return 
Status::newFatal(wfMessage("bs-filesystemhelper-has-path-traversal"));
if (!empty($sSubDirName) && !preg_match('#^[a-zA-Z/\\\]+#', 
$sSubDirName)) {
wfProfileOut(__METHOD__);
return Status::newFatal('Requested subdirectory of ' . 
BS_CACHE_DIR . ' contains illegal chars');
@@ -46,7 +46,7 @@
public static function ensureDataDirectory($sSubDirName = '') {
wfProfileIn(__METHOD__);
if (self::hasTraversal($sSubDirName))
-   return 
Status::newFatal(wfMessage("bs-filesystemhelper-has-path-traversal")->plain());
+   return 
Status::newFatal(wfMessage("bs-filesystemhelper-has-path-traversal"));
if (!empty($sSubDirName) && !preg_match('#^[a-zA-Z/\\\]+#', 
$sSubDirName)) {
wfProfileOut(__METHOD__);
return Status::newFatal('Requested subdirectory of ' . 
BS_DATA_DIR . ' contains illegal chars');
@@ -85,7 +85,7 @@
wfProfileIn(__METHOD__);
$oStatus = self::ensureCacheDirectory($sSubDirName);
if (self::hasTraversal($sSubDirName . DS . $sFileName))
-   return 
Status::newFatal(wfMessage("bs-filesystemhelper-has-path-traversal")->plain());
+   return 
Status::newFatal(wfMessage("bs-filesystemhelper-has-path-traversal"));
if (!$oStatus->isGood()) {
wfProfileOut(__METHOD__);
return $oStatus;
@@ -110,7 +110,7 @@
wfProfileIn(__METHOD__);
$oStatus = self::ensureDataDirectory($sSubDirName);
if (self::hasTraversal($sSubDirName . DS . $sFileName))
-   return 
Status::newFatal(wfMessage("bs-filesystemhelper-has-path-traversal")->plain());
+   return 
Status::newFatal(wfMessage("bs-filesystemhelper-has-path-traversal"));
if (!$oStatus->isGood()) {
wfProfileOut(__METHOD__);
return $oStatus;
@@ -161,7 +161,7 @@
 */
public static function copyRecursive($sSource, $sDestination) {
if (self::hasTraversal($sSource) || 
self::hasTraversal($sDestination))
-   return 
Status::newFatal(wfMessage("bs-filesystemhelper-has-path-traversal")->plain());
+   return 
Status::newFatal(wfMessage("bs-filesystemhelper-has-path-traversal"));
$rDir = opendir($sSource);
wfMkdirParents($sDestination);
while (false !== ( $sFileName = readdir($rDir))) {
@@ -201,11 +201,11 @@
 */
public static function getFileContent($sFileName, $sDir) {
if (self::hasTraversal($sDir . DS . $sFileName))
-   return 
Status::newFatal(wfMessage("bs-filesystemhelper-has-path-traversal")->plain());
+   return 
Status::newFatal(wfMessage("bs-filesystemhelper-has-path-traversal"));
if (!is_dir(BS_DATA_DIR . DS . $sDir))
-   return 
Status::newFatal(wfMessage("bs-filesystemhelper-no-directory", $sDir)->plain());
+   return 
Status::newFatal(wfMessage("bs-filesystemhelper-no-directory", $sDir));
if (!file_exists(BS_DATA_DIR . DS . $sDir . DS . $sFileName))
-   return 
Status::newFatal(wfMessage("bs-filesystemhelper-file-not-exists", 
$sFileName)->plain());
+   return 
Status::newFatal(wfMessage("bs-filesystemhelper-file-not-exists", $sFileName));
$sFile = file_get_contents(BS_DATA_DIR . DS . $sDir . DS . 
$sFileName);
return Status::newGood($sFile);
}
@@ -

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceFoundation[master]: Composer.json: Add php extension requirements

2017-08-30 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/374834 )

Change subject: Composer.json: Add php extension requirements
..

Composer.json: Add php extension requirements

Make checkup on installation easier

Change-Id: Ideccac521ce5c991072ddb19152a3881aa219431
---
M composer.json
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation 
refs/changes/34/374834/1

diff --git a/composer.json b/composer.json
index 7522df0..8adb966 100644
--- a/composer.json
+++ b/composer.json
@@ -16,6 +16,9 @@
}
],
"require": {
+   "ext-curl": "*",
+   "ext-gd": "*",
+   "ext-tidy": "*",
"param-processor/param-processor": "~1.2"
},
"require-dev": {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ideccac521ce5c991072ddb19152a3881aa219431
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: PageAssignment: Add permissions to assigned users fix

2017-07-19 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/366247 )

Change subject: PageAssignment: Add permissions to assigned users fix
..

PageAssignment: Add permissions to assigned users fix

Change-Id: Idbc48c00785e6f891b12b0cfc0261e0688a31bb4
---
M PageAssignments/extension.json
M PageAssignments/includes/PageAssignmentsNotificationHooks.php
M PageAssignments/includes/PageAssignmentsUsersAdditionalPermissionsHooks.php
3 files changed, 37 insertions(+), 3 deletions(-)


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

diff --git a/PageAssignments/extension.json b/PageAssignments/extension.json
index be657ef..f533dbd 100644
--- a/PageAssignments/extension.json
+++ b/PageAssignments/extension.json
@@ -2,7 +2,8 @@
"name": "PageAssignments",
"author": [
"Robert Vogel",
-   "Patric Wirth"
+   "Patric Wirth",
+   "Leonid Verhovskij"
],
"url": "https://help.bluespice.com/index.php/PageAssignments";,
"type": "bluespice",
@@ -178,7 +179,7 @@
"PageContentSaveComplete": 
"PageAssignmentsNotificationHooks::onPageContentSaveComplete",
"BSUserManagerAfterSetGroups": 
"PageAssignmentsNotificationHooks::onBSUserManagerAfterSetGroups",
"UserAddGroup": 
"PageAssignmentsUsersAdditionalPermissionsHooks::onUserAddGroup",
-   "userCan": 
"PageAssignmentsUsersAdditionalPermissionsHooks::onUserCan",
+   "UserGetRights": 
"PageAssignmentsUsersAdditionalPermissionsHooks::onUserGetRights",
"RevisionAjaxReviewBeforeParams": 
"PageAssignmentsUsersAdditionalPermissionsHooks::onRevisionAjaxReviewBeforeParams",
"BSBookshelfBookManager": 
"PageAssignmentsBookmakerHooks::onBSBookshelfBookManager",
"BSBookshelfManagerGetBookDataRow": 
"PageAssignmentsBookmakerHooks::onBSBookshelfManagerGetBookDataRow",
diff --git a/PageAssignments/includes/PageAssignmentsNotificationHooks.php 
b/PageAssignments/includes/PageAssignmentsNotificationHooks.php
index e551360..c19523a 100644
--- a/PageAssignments/includes/PageAssignmentsNotificationHooks.php
+++ b/PageAssignments/includes/PageAssignmentsNotificationHooks.php
@@ -100,6 +100,10 @@

'notification-bs-pageassignments-user-group-remove-body',
array( 'agent', 'title', 'titlelink', 'group', 
'groupcount' )
);
+
+   array_unshift(
+ $GLOBALS[ 'wgHooks' ]['userCan'], 
"PageAssignmentsUsersAdditionalPermissionsHooks::onUserCan"
+   );
}
 
/**
diff --git 
a/PageAssignments/includes/PageAssignmentsUsersAdditionalPermissionsHooks.php 
b/PageAssignments/includes/PageAssignmentsUsersAdditionalPermissionsHooks.php
index 828be37..c741e2b 100644
--- 
a/PageAssignments/includes/PageAssignmentsUsersAdditionalPermissionsHooks.php
+++ 
b/PageAssignments/includes/PageAssignmentsUsersAdditionalPermissionsHooks.php
@@ -54,10 +54,39 @@
return true;
}
 
+   /**
+* Add edit right permission for current logged in user if review 
process
+* add edit permission
+* @param User $user
+* @param type $rights
+* @return boolean
+*/
+   public static function onUserGetRights( User $user, &$aRights ) {
+   global $wgTitle;
+
+   if ( $wgTitle == null ) {
+   return true;
+   }
+
+   //check pageassignment for current user
+   $aPermissions = BsConfig::get(
+   'MW::PageAssignments::Permissions'
+   );
+
+   $arrUsers = PageAssignments::resolveAssignmentsToUserIds( 
$wgTitle );
+   if ( in_array( $user->getId(), $arrUsers ) ) {
+   $aRights = array_merge( $aRights, $aPermissions );
+   }
+
+   return true;
+   }
+
+
public static function addAdditionalPermissions( $oTitle, $oUser ) {
$aPermissions = BsConfig::get(
-   'MW::AssignedUsersAdditionalPermissions::Permissions'
+   'MW::PageAssignments::Permissions'
);
+
if( empty($aPermissions) ) {
return true;
}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idbc48c00785e6f891b12b0cfc0261e0688a31bb4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceSignHere[refs/meta/config]: Modify access rules

2017-07-17 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/365606 )

Change subject: Modify access rules
..

Modify access rules

Change-Id: I093299a4bc16740e43366ad779457b0d0d181809
---
M groups
M project.config
2 files changed, 2 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceSignHere 
refs/changes/06/365606/1

diff --git a/groups b/groups
index 137aa1a..fb784d7 100644
--- a/groups
+++ b/groups
@@ -1,3 +1,4 @@
 # UUID Group Name
 #
 a24d03c3c0ac1eaa325d2df7e571c0e2e3c208b7   extension-BlueSpiceSignHere
+f7087318186de2eac3b21b63abd2a145035455a3   bluespice
diff --git a/project.config b/project.config
index c2260a7..46e156a 100644
--- a/project.config
+++ b/project.config
@@ -7,4 +7,5 @@
 [submit]
mergeContent = true
 [access "refs/*"]
+   owner = group bluespice
owner = group extension-BlueSpiceSignHere

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I093299a4bc16740e43366ad779457b0d0d181809
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceSignHere
Gerrit-Branch: refs/meta/config
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceSMWConnector[master]: refactoring of bsvisualeditor from smwforms to pageforms

2017-07-12 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/364750 )

Change subject: refactoring of bsvisualeditor from smwforms to pageforms
..

refactoring of bsvisualeditor from smwforms to pageforms

Change-Id: I0a55228086861c1e325f75ce7db8cb26dc545c94
---
M extension.json
M includes/BSSMWConnectorHooks.php
M includes/forminputs/BSSFVisualEditor.php
M resources/ext.BSSMWConnector.SF.FreeTextVisualEditor.js
4 files changed, 10 insertions(+), 8 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceSMWConnector 
refs/changes/50/364750/1

diff --git a/extension.json b/extension.json
index a279774..11b7f52 100644
--- a/extension.json
+++ b/extension.json
@@ -24,7 +24,7 @@
},
"Hooks": {
"BeforePageDisplay": "BSSMWConnectorHooks::onBeforePageDisplay",
-   "sfFormPrinterSetup": 
"BSSMWConnectorHooks::onSfFormPrinterSetup",
+   "PageForms::FormPrinterSetup": 
"BSSMWConnectorHooks::onPFFormPrinterSetup",
"BSBookshelfNodeTag": 
"BSSMWConnectorHooks::onBSBookshelfNodeTag",
"BSBookshelfExportTag": 
"BSSMWConnectorHooks::onBSBookshelfExportTag",
"NamespaceManager::getMetaFields": 
"BSSMWCNamespaceManager::onGetMetaFields",
diff --git a/includes/BSSMWConnectorHooks.php b/includes/BSSMWConnectorHooks.php
index 870d47c..2ffaa8c 100644
--- a/includes/BSSMWConnectorHooks.php
+++ b/includes/BSSMWConnectorHooks.php
@@ -54,10 +54,10 @@
 
/**
 * Registers new input types
-* @param SFFormPrinter $formPrinter
+* @param PFFormPrinter $formPrinter
 * @return boolean Always true
 */
-   public static function onSfFormPrinterSetup( $formPrinter ) {
+   public static function onPFFormPrinterSetup( PFFormPrinter $formPrinter 
) {
$formPrinter->registerInputType( 'BSSFVisualEditor' );
return true;
}
diff --git a/includes/forminputs/BSSFVisualEditor.php 
b/includes/forminputs/BSSFVisualEditor.php
index f599976..3c0ccb3 100644
--- a/includes/forminputs/BSSFVisualEditor.php
+++ b/includes/forminputs/BSSFVisualEditor.php
@@ -1,6 +1,8 @@
 https://gerrit.wikimedia.org/r/364750
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0a55228086861c1e325f75ce7db8cb26dc545c94
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceSMWConnector
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Add Hook EditPage::actionURLOptions with params: $editPage a...

2017-07-05 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/363357 )

Change subject: Add Hook EditPage::actionURLOptions with params: $editPage and 
&$options to add custom action link options
..

Add Hook EditPage::actionURLOptions with params: $editPage and &$options to add 
custom action link options

In combination with the hooks 'UpdateEditUrlOptions' and 
'ArticleUpdateBeforeRedirect' the url params can be transfered and changed on 
each step of edit process until return to starting point - the normal page view.

Change-Id: I6a35d1d7968cf671ad62db533356c0c1a203
---
M docs/hooks.txt
M includes/EditPage.php
2 files changed, 9 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/57/363357/1

diff --git a/docs/hooks.txt b/docs/hooks.txt
index 62e5bdb..3dfc2bd 100644
--- a/docs/hooks.txt
+++ b/docs/hooks.txt
@@ -1363,6 +1363,10 @@
 &$text: Text to preload with
 &$title: Title object representing the page being created
 
+'EditPage::actionURLOptions': Change options in URL to use in the form's 
action attribute
+$editPage: EditPage Object
+&$options: array of url params, eg. $options['myparam'] = 'myvalue';
+
 'EditPage::attemptSave': Called before an article is
 saved, that is before WikiPage::doEditContent() is called
 $editpage_Obj: the current EditPage object
diff --git a/includes/EditPage.php b/includes/EditPage.php
index 6be8771..f3d0dca 100644
--- a/includes/EditPage.php
+++ b/includes/EditPage.php
@@ -3713,7 +3713,11 @@
 * @return string
 */
protected function getActionURL( Title $title ) {
-   return $title->getLocalURL( [ 'action' => $this->action ] );
+   $options = [ 'action' => $this->action ];
+
+   Hooks::run( 'EditPage::actionURLOptions', [ $this, &$options ] 
);
+
+   return $title->getLocalURL( $options );
}
 
/**

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6a35d1d7968cf671ad62db533356c0c1a203
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


mediawiki-commits@lists.wikimedia.org

2017-07-05 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/363341 )

Change subject: Add Hook UpdateEditUrlOptions with params: $skin and &$options 
to add custom edit link options
..

Add Hook UpdateEditUrlOptions with params: $skin and &$options to add custom 
edit link options

folow up from https://gerrit.wikimedia.org/r/#/c/360858/1

Change-Id: I9c9d8def693a4a16b724354c5069f99d89382baf
---
M docs/hooks.txt
M includes/skins/Skin.php
2 files changed, 6 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/41/363341/1

diff --git a/docs/hooks.txt b/docs/hooks.txt
index 62e5bdb..c699852 100644
--- a/docs/hooks.txt
+++ b/docs/hooks.txt
@@ -3472,6 +3472,10 @@
 $user: user that watched
 &$page: WikiPage object that was watched
 
+'UpdateEditUrlOptions': Before Return URL options for the 'edit page' link.
+$skin: Skin Object
+&$options: additional url params, eg. $options['myparam'] = 'myvalue';
+
 'UpdateUserMailerFormattedPageStatus': Before notification email gets sent.
 &$formattedPageStatus: list of valid page states
 
diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php
index a8f9d0c..3f87f26 100644
--- a/includes/skins/Skin.php
+++ b/includes/skins/Skin.php
@@ -1043,6 +1043,8 @@
$options['oldid'] = intval( $this->getRevisionId() );
}
 
+   Hooks::run( 'UpdateEditUrlOptions', [ $this, &$options ] );
+
return $options;
}
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9c9d8def693a4a16b724354c5069f99d89382baf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: Remove deprecated hook calls for BSWidgetBarGetDefaultWidgets

2017-06-29 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/362211 )

Change subject: Remove deprecated hook calls for BSWidgetBarGetDefaultWidgets
..

Remove deprecated hook calls for BSWidgetBarGetDefaultWidgets

after the extension have been removed, the hooks are useless and should be 
removed to.

Change-Id: I2af0ca957ba50bf6fe1ff3d7d4a3dede9a2ba50b
---
M SmartList/SmartList.class.php
M UniversalExport/UniversalExport.class.php
M WhoIsOnline/WhoIsOnline.class.php
3 files changed, 0 insertions(+), 79 deletions(-)


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

diff --git a/SmartList/SmartList.class.php b/SmartList/SmartList.class.php
index dfbb015..5131822 100644
--- a/SmartList/SmartList.class.php
+++ b/SmartList/SmartList.class.php
@@ -47,7 +47,6 @@
wfProfileIn('BS::' . __METHOD__);
$this->setHook( 'ParserFirstCallInit', 'onParserFirstCallInit' 
);
$this->setHook( 'PageContentSaveComplete' );
-   $this->setHook( 'BSWidgetBarGetDefaultWidgets' );
$this->setHook( 'BSWidgetListHelperInitKeyWords' );
$this->setHook( 'BSUserSidebarDefaultWidgets' );
$this->setHook( 'BSInsertMagicAjaxGetData', 
'onBSInsertMagicAjaxGetData' );
@@ -411,44 +410,6 @@
}
 
/**
-* Renders widget view of SmartList. Called by 
MW::WidgetBar::DefaultWidgets.
-* @param BsEvent $oEvent The Event object
-* @param array $aWidgets An array of widgets. Add your Widget to this 
array.
-* @return bool allow other hooked methods to be executed. always true
-*/
-   public function onBSWidgetBarGetDefaultWidgets( &$aViews, $oUser, 
$oTitle ) {
-   $aArgs = array();
-   $aArgs['count'] = (int)BsConfig::get( 'MW::SmartList::Count' );
-   $aArgs['namespaces'] = implode( ',', BsConfig::get( 
'MW::SmartList::Namespaces' ) );
-   $aArgs['categories'] = implode( ',', BsConfig::get( 
'MW::SmartList::Categories' ) );
-   $aArgs['categoryMode'] = 'OR';
-   $aArgs['showMinorChanges'] = BsConfig::get( 
'MW::SmartList::ShowMinorChanges' );
-   $aArgs['period'] = BsConfig::get( 'MW::SmartList::Period' );
-   $aArgs['mode'] = 'recentchanges';
-   $aArgs['showOnlyNewArticles'] = BsConfig::get( 
'MW::SmartList::ShowOnlyNewArticles' );
-   $aArgs['heading'] = wfMessage( 'bs-smartlist-recent-changes' 
)->plain();
-   $aArgs['trim'] = BsConfig::get( 'MW::SmartList::Trim' );
-   $aArgs['showtext'] = BsConfig::get( 'MW::SmartList::ShowText' );
-   $aArgs['trimtext'] = BsConfig::get( 'MW::SmartList::TrimText' );
-   $aArgs['order'] = BsConfig::get( 'MW::SmartList::Order' );
-   $aArgs['sort'] = BsConfig::get( 'MW::SmartList::Sort' );
-   $aArgs['showns'] = BsConfig::get( 
'MW::SmartList::ShowNamespace' );
-
-   $sCustomList = $this->getCustomList( $aArgs );
-   $sHeading = wfMessage( 'bs-smartlist-recent-changes' )->plain();
-   $oWidgetView = new ViewWidget();
-   $oWidgetView->setId( 'smartlist' )
-   ->setTitle( $sHeading )
-   ->setBody( $sCustomList )
-   ->setTooltip( $sHeading )
-   ->setAdditionalBodyClasses( array( 
'bs-nav-links' ) ); //For correct margin and fontsize
-
-   $aViews['SMARTLIST'] = $oWidgetView;
-
-   return true;
-   }
-
-   /**
 * Callback for UserSidebar. Adds the YourEdits Widget to the 
UserSidebar as default filling.
 * @param BsEvent $oEvent The event to handle
 * @param array $aWidgets An array of WidgetView objects
@@ -467,21 +428,7 @@
 */
public function onBSWidgetListHelperInitKeyWords( &$aKeywords, $oTitle 
) {
$aKeywords['YOUREDITS'] = array( $this, 
'onWidgetListKeywordYourEdits' );
-   $aKeywords['INFOBOX']   = array( $this, 'onWidgetListKeyword' );
-   $aKeywords['SMARTLIST'] = array( $this, 'onWidgetListKeyword' );
-
return true;
-   }
-
-   /**
-* Creates a Widget for the INFOBOX Keyword.
-* @return ViewWidget
-*/
-   public function onWidgetListKeyword() {
-   $aTmpViews = array();
-   $this->onBSWidgetBarGetDefaultWidgets( $aTmpViews, null, null );
-
-   return $aTmpViews['SMARTLIST'];
}
 
/**
diff --git a/UniversalExport/UniversalExport.class.php 
b/UniversalExport/UniversalExport.class.php
index 6a583ea..c564fb3 100644
--- a/UniversalExport/UniversalExport.class.php
+++ b/UniversalExport/UniversalExport.class.php
@@ -62,7 +62,6 @@
 
  

[MediaWiki-commits] [Gerrit] mediawiki...PageForms[master]: PFUploadWindow: check type of construct param and prevent er...

2017-06-29 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/362207 )

Change subject: PFUploadWindow: check type of construct param and prevent error 
when string passed
..

PFUploadWindow: check type of construct param and prevent error when string 
passed

in current mediawiki the first constructor param will be a string,
https://doc.wikimedia.org/mediawiki-core/master/php/classUnlistedSpecialPage.html

i just made the minimal change to prevent a total crash here. normaly the 
constructor param should be "name" not "request"

Change-Id: Ifb9d5146fdb1ab4cee76d6f8bd54e1e8d8b2e8b1
---
M specials/PF_UploadWindow.php
1 file changed, 6 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PageForms 
refs/changes/07/362207/1

diff --git a/specials/PF_UploadWindow.php b/specials/PF_UploadWindow.php
index 362eb7b..a1c04af 100644
--- a/specials/PF_UploadWindow.php
+++ b/specials/PF_UploadWindow.php
@@ -21,7 +21,7 @@
 */
public function __construct( $request = null ) {
parent::__construct( 'UploadWindow', 'upload' );
-   $this->loadRequest( is_null( $request ) ? $this->getRequest() : 
$request );
+   $this->loadRequest( $request instanceof WebRequest ? $request : 
$this->getRequest() );
}
 
/** Misc variables **/
@@ -208,7 +208,7 @@
 
# Add upload error message
$form->addPreText( $message );
-   
+
# Add footer to form
if ( !wfMessage( 'uploadfooter' )->isDisabled() ) {
$uploadFooter = wfMessage( 'uploadfooter' )->plain();
@@ -257,7 +257,7 @@
$sessionKey = $this->mUpload->stashFile()->getFileKey();
$message = '' . wfMessage( 'uploadwarning' )->escaped() . 
"\n" .
'' . $message . "\n";
-   
+
$form = $this->getUploadForm( $message, $sessionKey );
$form->setSubmitText( wfMessage( 'upload-tryagain' )->text() );
$this->showUploadForm( $form );
@@ -387,12 +387,12 @@
// any more... and it messes up the encoding for all other
// browsers. @TODO - fix handling in IE!
//$basename = utf8_decode( $basename );
-   
+
$output = <<
var input = parent.window.jQuery( 
parent.document.getElementById("{$this->mInputID}") );
 END;
-   
+
if ( $this->mDelimiter == null ) {
$output .= <mDelimiter} ' );
input.change();

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifb9d5146fdb1ab4cee76d6f8bd54e1e8d8b2e8b1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PageForms
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: Review: remove deprecated extension

2017-06-26 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/361476 )

Change subject: Review: remove deprecated extension
..

Review: remove deprecated extension

Change-Id: I37c570e54724fcbd112f305e7bfc05a19d07f313
---
M BlueSpiceExtensions.default.php
D Review/Review.class.php
D Review/Review.setup.php
D Review/db/mysql/review.patch.editable.sql
D Review/db/mysql/review.patch.enddate.sql
D Review/db/mysql/review.patch.id.sql
D Review/db/mysql/review.patch.mode.sql
D Review/db/mysql/review.patch.owner.sql
D Review/db/mysql/review.patch.pid.sql
D Review/db/mysql/review.patch.rev_abortable.sql
D Review/db/mysql/review.patch.rev_mode.sql
D Review/db/mysql/review.patch.rev_sequential.sql
D Review/db/mysql/review.patch.revs_delegate_to.sql
D Review/db/mysql/review.patch.startdate.sql
D Review/db/mysql/review.sql
D Review/db/mysql/review_steps.patch.comment.sql
D Review/db/mysql/review_steps.patch.delegate_to.sql
D Review/db/mysql/review_steps.patch.id.sql
D Review/db/mysql/review_steps.patch.review_id.sql
D Review/db/mysql/review_steps.patch.sort_id.sql
D Review/db/mysql/review_steps.patch.status.sql
D Review/db/mysql/review_steps.patch.timestamp.sql
D Review/db/mysql/review_steps.patch.user_id.sql
D Review/db/mysql/review_templates.patch.id.sql
D Review/db/mysql/review_templates.patch.mode.sql
D Review/db/mysql/review_templates.patch.name.sql
D Review/db/mysql/review_templates.patch.owner.sql
D Review/db/mysql/review_templates.patch.public.sql
D Review/db/mysql/review_templates.patch.revt_abortable.sql
D Review/db/mysql/review_templates.patch.revt_editable.sql
D Review/db/mysql/review_templates.patch.revt_mode.sql
D Review/db/mysql/review_templates.patch.revt_sequential.sql
D Review/db/mysql/review_templates.patch.user.sql
D Review/db/oracle/review.oci.sql
D Review/db/oracle/review.patch.name.index.oci.sql
D Review/db/oracle/review.patch.owner.index.oci.sql
D Review/db/oracle/review.patch.pid.index.oci.sql
D Review/db/oracle/review.patch.review_id.index.oci.sql
D Review/db/oracle/review.patch.revs_delegate_to.oci.sql
D Review/db/oracle/review.patch.startdate.index.oci.sql
D Review/db/oracle/review.patch.status.index.oci.sql
D Review/db/oracle/review.patch.user_id.index.oci.sql
D Review/db/oracle/review_steps.patch.delegate_to.sql
D Review/db/oracle/review_steps.patch.revs_timestamp.sql
D Review/db/postgres/review.patch.rev_owner.index.pg.sql
D Review/db/postgres/review.patch.rev_pid.index.pg.sql
D Review/db/postgres/review.patch.rev_startdate.index.pg.sql
D Review/db/postgres/review.pg.sql
D Review/db/postgres/review_steps.patch.revs_review_id.index.pg.sql
D Review/db/postgres/review_steps.patch.revs_status.index.pg.sql
D Review/db/postgres/review_steps.patch.revs_user_id.index.pg.sql
D Review/db/postgres/review_templates.patch.revt_name.index.pg.sql
D Review/db/postgres/review_templates.patch.revt_owner.index.pg.sql
D Review/doc/Hooks.txt
D Review/extension.json
D Review/i18n/arq.json
D Review/i18n/ast.json
D Review/i18n/atj.json
D Review/i18n/av.json
D Review/i18n/az.json
D Review/i18n/ba.json
D Review/i18n/bcc.json
D Review/i18n/bcl.json
D Review/i18n/bg.json
D Review/i18n/bgn.json
D Review/i18n/br.json
D Review/i18n/ca.json
D Review/i18n/ce.json
D Review/i18n/ceb.json
D Review/i18n/ckb.json
D Review/i18n/cs.json
D Review/i18n/de-formal.json
D Review/i18n/de.json
D Review/i18n/diq.json
D Review/i18n/el.json
D Review/i18n/en.json
D Review/i18n/es.json
D Review/i18n/et.json
D Review/i18n/eu.json
D Review/i18n/fa.json
D Review/i18n/fr.json
D Review/i18n/fy.json
D Review/i18n/gl.json
D Review/i18n/he.json
D Review/i18n/hi.json
D Review/i18n/hu.json
D Review/i18n/hy.json
D Review/i18n/it.json
D Review/i18n/ja.json
D Review/i18n/ko.json
D Review/i18n/ksh.json
D Review/i18n/ku-latn.json
D Review/i18n/lb.json
D Review/i18n/lki.json
D Review/i18n/lt.json
D Review/i18n/lv.json
D Review/i18n/lzh.json
D Review/i18n/mk.json
D Review/i18n/mn.json
D Review/i18n/mr.json
D Review/i18n/my.json
D Review/i18n/ne.json
D Review/i18n/nl.json
D Review/i18n/oc.json
D Review/i18n/om.json
D Review/i18n/pam.json
D Review/i18n/pl.json
D Review/i18n/ps.json
D Review/i18n/pt-br.json
D Review/i18n/pt.json
D Review/i18n/qqq.json
D Review/i18n/qu.json
D Review/i18n/ru.json
D Review/i18n/sl.json
D Review/i18n/sv.json
D Review/i18n/ta.json
D Review/i18n/tcy.json
D Review/i18n/tl.json
D Review/i18n/tr.json
D Review/i18n/tt-cyrl.json
D Review/i18n/uk.json
D Review/i18n/yi.json
D Review/i18n/zh-hans.json
D Review/i18n/zh-hant.json
D Review/includes/ReviewFormatter.class.php
D Review/includes/ReviewProcess.class.php
D Review/includes/ReviewProcessStep.class.php
D Review/includes/api/BSApiReviewOverviewStore.php
D Review/includes/api/BSApiReviewPossibleReviewersStore.php
D Review/includes/api/BSApiReviewTasks.php
D Review/includes/specials/SpecialReview.class.php
D Review/languages/SpecialReview.alias.php
D Review/resources/BS.Review/Dialog.js
D Review/resource

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: WidgetBar: Remove deprecated Extension

2017-06-26 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/361473 )

Change subject: WidgetBar: Remove deprecated Extension
..

WidgetBar: Remove deprecated Extension

Change-Id: Iff511d93088d8be7051bc22d02ad6ff9b4a732c7
---
M BlueSpiceExtensions.default.php
D WidgetBar/WidgetBar.class.php
D WidgetBar/WidgetBar.setup.php
D WidgetBar/doc/Events.txt
D WidgetBar/doc/Hooks.txt
D WidgetBar/extension.json
D WidgetBar/i18n/ast.json
D WidgetBar/i18n/ba.json
D WidgetBar/i18n/br.json
D WidgetBar/i18n/ce.json
D WidgetBar/i18n/de-formal.json
D WidgetBar/i18n/de.json
D WidgetBar/i18n/diq.json
D WidgetBar/i18n/en.json
D WidgetBar/i18n/es.json
D WidgetBar/i18n/fa.json
D WidgetBar/i18n/fr.json
D WidgetBar/i18n/gl.json
D WidgetBar/i18n/ia.json
D WidgetBar/i18n/it.json
D WidgetBar/i18n/ja.json
D WidgetBar/i18n/ko.json
D WidgetBar/i18n/lb.json
D WidgetBar/i18n/lt.json
D WidgetBar/i18n/mk.json
D WidgetBar/i18n/nb.json
D WidgetBar/i18n/nl.json
D WidgetBar/i18n/pt.json
D WidgetBar/i18n/qqq.json
D WidgetBar/i18n/ru.json
D WidgetBar/i18n/sl.json
D WidgetBar/i18n/sv.json
D WidgetBar/i18n/uk.json
D WidgetBar/i18n/zh-hans.json
D WidgetBar/i18n/zh-hant.json
D WidgetBar/resources/BS.WidgetBar/dialog/Edit.js
D WidgetBar/resources/bluespice.widgetBar.css
D WidgetBar/resources/bluespice.widgetBar.js
D WidgetBar/resources/images/bs-star-orange.png
D WidgetBar/resources/images/bs-star-white.png
D WidgetBar/resources/images/bs-userpage-widgets.png
D WidgetBar/views/view.WidgetError.php
D WidgetBar/views/view.WidgetErrorList.php
D WidgetBar/views/view.WidgetList.php
44 files changed, 0 insertions(+), 877 deletions(-)


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

diff --git a/BlueSpiceExtensions.default.php b/BlueSpiceExtensions.default.php
index 4629038..4378c89 100644
--- a/BlueSpiceExtensions.default.php
+++ b/BlueSpiceExtensions.default.php
@@ -43,8 +43,6 @@
 require_once( __DIR__."/WatchList/WatchList.setup.php" );
 require_once( __DIR__."/WhoIsOnline/WhoIsOnline.setup.php" );
 // This extension is deprecated as of BlueSpice 2.27.0 and will be removed soon
-#require_once( __DIR__."/WidgetBar/WidgetBar.setup.php" );
-// This extension is deprecated as of BlueSpice 2.27.0 and will be removed soon
 #require_once( __DIR__."/WantedArticle/WantedArticle.setup.php" );
 require_once( __DIR__."/ShoutBox/ShoutBox.setup.php" );
 require_once( __DIR__."/VisualEditor/VisualEditor.setup.php" );
diff --git a/WidgetBar/WidgetBar.class.php b/WidgetBar/WidgetBar.class.php
deleted file mode 100644
index 1663584..000
--- a/WidgetBar/WidgetBar.class.php
+++ /dev/null
@@ -1,227 +0,0 @@
-http://www.bluespice.com
- *
- * @author Robert Vogel 
- * @version2.23.1
- * @packageBlueSpice_Extensions
- * @subpackage WidgetBar
- * @copyright  Copyright (C) 2016 Hallo Welt! GmbH, All rights reserved.
- * @licensehttp://www.gnu.org/copyleft/gpl.html GNU Public License v2 or 
later
- * @filesource
- */
-
-/**
- * Base class for WidgetBar extension
- * @package BlueSpice_Extensions
- * @subpackage WidgetBar
- */
-class WidgetBar extends BsExtensionMW {
-
-   protected $aKeywords = array();
-
-   /**
-* Initialization of WidgetBar extension
-*/
-   protected function initExt() {
-   wfProfileIn( 'BS::'.__METHOD__ );
-   $this->setHook( 'BS:UserPageSettings', 'onUserPageSettings' );
-   $this->setHook( 'SkinTemplateOutputPageBeforeExec' );
-   $this->setHook( 'userCan', 'onUserCan' );
-   $this->setHook( 'GetPreferences' );
-   $this->setHook( 'BeforePageDisplay' );
-   $this->setHook( 'EditFormPreloadText' );
-
-   BsConfig::registerVar( 'MW::WidgetBar::LinkToEdit', array ( 
'href' => '', 'content' => '' ), BsConfig::LEVEL_USER | BsConfig::NO_DEFAULT, 
'bs-widgetbar-userpagesettings-link-title', 'link' );
-
-   wfProfileOut( 'BS::'.__METHOD__ );
-   }
-
-   /**
-*
-* @param OutputPage $oOutputPage
-* @param SkinTemplate $oSkinTemplate
-* @return boolean
-*/
-   public function onBeforePageDisplay( $oOutputPage, $oSkinTemplate ) {
-   $oOutputPage->addModules( 'ext.bluespice.widgetbar' );
-   $oOutputPage->addModuleStyles( 'ext.bluespice.widgetbar.style' 
);
-
-   return true;
-   }
-
-   /**
-* Hook-Handler for 'userCan', prevents foreign access to a users 
widgetbar settings
-* @param Title $oTitle Title object being checked against
-* @param User $oUser Current user object
-* @param string $sAction Action being checked
-* @param bool $bResult Pointer to result returned if hook returns 
false. If null is returned,  userCan checks are continued by internal code.
-* @return bool false if the user accesses a UserSidebar Title o

mediawiki-commits@lists.wikimedia.org

2017-06-22 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/360858 )

Change subject: Add Hook UpdateEditUrlOptions with params: $skin and &$options 
to add custom edit link options
..

Add Hook UpdateEditUrlOptions with params: $skin and &$options to add custom 
edit link options

Change-Id: Ica84c608de98b1706094268954b52c571372d70c
---
M includes/skins/Skin.php
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/58/360858/1

diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php
index d70a6b9..007cbb5 100644
--- a/includes/skins/Skin.php
+++ b/includes/skins/Skin.php
@@ -979,6 +979,8 @@
$options['oldid'] = intval( $this->getRevisionId() );
}
 
+   Hooks::run( 'UpdateEditUrlOptions', [ $this, &$options ] );
+
return $options;
}
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ica84c608de98b1706094268954b52c571372d70c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: REL1_27
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: Add PHPUnit Tests, uploadfile is ignored in this version

2017-06-06 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/357352 )

Change subject: Add PHPUnit Tests, uploadfile is ignored in this version
..

Add PHPUnit Tests, uploadfile is ignored in this version

Change-Id: Ie51768a0129b9001744176ef48cd0447108b8445
---
M Avatars/Avatars.class.php
M Avatars/extension.json
A Avatars/tests/phpunit/BSApiAvatarsTasksTest.php
3 files changed, 363 insertions(+), 1 deletion(-)


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

diff --git a/Avatars/Avatars.class.php b/Avatars/Avatars.class.php
index 86e9604..b0d9a1a 100644
--- a/Avatars/Avatars.class.php
+++ b/Avatars/Avatars.class.php
@@ -318,4 +318,16 @@
}
return true;
}
+
+   /**
+* UnitTestsList allows registration of additional test suites to 
execute
+* under PHPUnit. Extensions can append paths to files to the $paths 
array,
+* and since MediaWiki 1.24, can specify paths to directories, which 
will
+* be scanned recursively for any test case files with the suffix 
"Test.php".
+* @param array $paths
+*/
+   public static function onUnitTestsList( array &$paths ) {
+   $paths[] = __DIR__ . '/tests/phpunit/';
+   return true;
+   }
 }
diff --git a/Avatars/extension.json b/Avatars/extension.json
index 806b80d..3a246fa 100644
--- a/Avatars/extension.json
+++ b/Avatars/extension.json
@@ -52,7 +52,8 @@
"Hooks": {
"BeforePageDisplay": "Avatars::onBeforePageDisplay",
"BSUserManagerAfterAddUser": 
"Avatars::onBSUserManagerAfterAddUser",
-   "LocalUserCreated": "Avatars::onLocalUserCreated"
+   "LocalUserCreated": "Avatars::onLocalUserCreated",
+   "UnitTestsList": "Avatars::onUnitTestsList"
},
"manifest_version": 1
 }
diff --git a/Avatars/tests/phpunit/BSApiAvatarsTasksTest.php 
b/Avatars/tests/phpunit/BSApiAvatarsTasksTest.php
new file mode 100644
index 000..fbce5c2
--- /dev/null
+++ b/Avatars/tests/phpunit/BSApiAvatarsTasksTest.php
@@ -0,0 +1,349 @@
+wi [
+ 'examples' => [],
+ 'params' => []
+ ],
+* @return type
+*/
+   function testGenerateAvatar() {
+   $data = $this->executeTask(
+ 'generateAvatar', []
+   );
+
+   $this->assertEquals( true, $data->success );
+
+   }
+
+   /**
+* 'setUserImage' => [
+ 'examples' => [
+ [
+ 'userImage' => 'ProfileImage.png'
+ ]
+ ],
+ 'params' => [
+ 'userImage' => [
+ 'desc' => 'Name of the image to set',
+ 'type' => 'string',
+ 'required' => true
+ ]
+ ]
+ ]
+* @return type
+*/
+   function testSetUserImage( ) {
+   $user = self::$users['uploader'];
+
+   $params = [
+   'action' => 'login',
+   'lgname' => $user->username,
+   'lgpassword' => $user->password
+   ];
+   list( $result, ,$session ) = $this->doApiRequest( $params );
+   $this->assertArrayHasKey( "login", $result );
+   $this->assertArrayHasKey( "result", $result['login'] );
+   $this->assertEquals( "NeedToken", $result['login']['result'] );
+   $token = $result['login']['token'];
+
+   $params = [
+   'action' => 'login',
+   'lgtoken' => $token,
+   'lgname' => $user->username,
+   'lgpassword' => $user->password
+   ];
+   list( $result, , $session ) = $this->doApiRequest( $params, 
$session );
+   $this->assertArrayHasKey( "login", $result );
+   $this->assertArrayHasKey( "result", $result['login'] );
+   $this->assertEquals( "Success", $result['login']['result'] );
+   $this->assertArrayHasKey( 'lgtoken', $result['login'] );
+
+   $this->assertNotEmpty( $session, 'API Login must return a 
session' );
+
+   //create example image
+   $extension = 'png';
+   $mimeType = 'image/png';
+
+   try {
+   $randomImageGenerator = new RandomImageGenerator();
+   $filePaths = $randomImageGenerator->writeImages( 1, 
$extension, $this->getNewTempDirectory() );
+   } catch ( Exception $e ) {
+   $this->markTestIncomplete( $e->getMessage() );
+   }
+
+   /** @var array $filePaths */
+   $filePath = $filePaths[0];
+   $fileSize = filesize( $filePath );
+   $fileName = basename( $filePath );
+
+   $this->deleteFileByFileName( $

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceFoundation[master]: Add js ConfigVar containing bluespice version

2017-06-01 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/356553 )

Change subject: Add js ConfigVar containing bluespice version
..

Add js ConfigVar containing bluespice version

Change-Id: I9c76317056bc14a2cef89d7f1441fd9b714ac44a
---
M extension.json
M includes/ExtensionManager.class.php
2 files changed, 10 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation 
refs/changes/53/356553/1

diff --git a/extension.json b/extension.json
index a039df9..31b1e87 100644
--- a/extension.json
+++ b/extension.json
@@ -407,7 +407,8 @@
"UserAddGroup": "BsGroupHelper::addTemporaryGroupToUserHelper",
"ExtensionTypes": "BsCoreHooks::onExtensionTypes",
"PageContentSaveComplete": 
"BsCoreHooks::onPageContentSaveComplete",
-   "UnitTestsList": "BsCoreHooks::onUnitTestsList"
+   "UnitTestsList": "BsCoreHooks::onUnitTestsList",
+   "ResourceLoaderGetConfigVars": 
"BsExtensionManager::onResourceLoaderGetConfigVars"
},
"config": {
"_prefix": "bsg",
diff --git a/includes/ExtensionManager.class.php 
b/includes/ExtensionManager.class.php
index 064b1dd..871a058 100644
--- a/includes/ExtensionManager.class.php
+++ b/includes/ExtensionManager.class.php
@@ -281,4 +281,12 @@
$bsgSystemNamespaces[$iCalculatedNSId] = $sConstantName;
}
}
+
+   public static function onResourceLoaderGetConfigVars( array &$vars ) {
+   global $bsgBlueSpiceExtInfo;
+
+   $vars["bsgBlueSpiceExtInfo"] = $bsgBlueSpiceExtInfo;
+
+   return true;
+   }
 }
\ No newline at end of file

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9c76317056bc14a2cef89d7f1441fd9b714ac44a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceEditNotifyConnector[master]: Add empty default value for wgEditNotifyAlerts

2017-05-03 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/351647 )

Change subject: Add empty default value for wgEditNotifyAlerts
..

Add empty default value for wgEditNotifyAlerts

Change-Id: I04febdd0dc98d9f35377db84561c1f021da04cfa
---
M includes/BlueSpiceEditNotifyConnector.php
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceEditNotifyConnector
 refs/changes/47/351647/1

diff --git a/includes/BlueSpiceEditNotifyConnector.php 
b/includes/BlueSpiceEditNotifyConnector.php
index 1f24c03..08d1dc4 100644
--- a/includes/BlueSpiceEditNotifyConnector.php
+++ b/includes/BlueSpiceEditNotifyConnector.php
@@ -35,6 +35,8 @@
global $wgHooks;
$wgHooks[ 'BeforeCreateEchoEvent' ][] = 
"BlueSpiceEditNotifyConnector::onBeforeCreateEchoEvent";
};
+   global $wgEditNotifyAlerts;
+   $wgEditNotifyAlerts = [];
}
 
/**

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I04febdd0dc98d9f35377db84561c1f021da04cfa
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceEditNotifyConnector
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: [WIP] Avatars: add phpunit base tests

2017-04-28 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/350816 )

Change subject: [WIP] Avatars: add phpunit base tests
..

[WIP] Avatars: add phpunit base tests

Change-Id: Ib705418da98dce7f854bc157781031cdae4a446d
---
M Avatars/Avatars.class.php
M Avatars/extension.json
A Avatars/tests/phpunit/BSApiAvatarsTasksTest.php
3 files changed, 112 insertions(+), 1 deletion(-)


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

diff --git a/Avatars/Avatars.class.php b/Avatars/Avatars.class.php
index 6c1a59a..e5df445 100644
--- a/Avatars/Avatars.class.php
+++ b/Avatars/Avatars.class.php
@@ -240,4 +240,16 @@
return $sNewUserImageSrc;
}
 
+   /**
+* UnitTestsList allows registration of additional test suites to 
execute
+* under PHPUnit. Extensions can append paths to files to the $paths 
array,
+* and since MediaWiki 1.24, can specify paths to directories, which 
will
+* be scanned recursively for any test case files with the suffix 
"Test.php".
+* @param array $paths
+*/
+   public static function onUnitTestsList( array &$paths ) {
+   $paths[] = __DIR__ . '/tests/phpunit/';
+   return true;
+   }
+
 }
diff --git a/Avatars/extension.json b/Avatars/extension.json
index 03da66d..c1b988d 100644
--- a/Avatars/extension.json
+++ b/Avatars/extension.json
@@ -50,7 +50,8 @@
"remoteExtPath": "BlueSpiceExtensions/Avatars/resources"
},
"Hooks": {
-   "BeforePageDisplay": "Avatars::onBeforePageDisplay"
+   "BeforePageDisplay": "Avatars::onBeforePageDisplay",
+   "UnitTestsList": "Avatars::onUnitTestsList"
},
"manifest_version": 1
 }
diff --git a/Avatars/tests/phpunit/BSApiAvatarsTasksTest.php 
b/Avatars/tests/phpunit/BSApiAvatarsTasksTest.php
new file mode 100644
index 000..b96fb41
--- /dev/null
+++ b/Avatars/tests/phpunit/BSApiAvatarsTasksTest.php
@@ -0,0 +1,98 @@
+ [
+   'examples' => [],
+   'params' => []
+   ],
+* @return type
+*/
+   function testGenerateAvatar() {
+   $data = $this->executeTask(
+ 'generateAvatar', [
+   'portletConfig' => [ json_encode( [ ] ) ]
+ ]
+   );
+
+   $this->assertEquals( true, $data->success );
+
+   return $data;
+   }
+
+   /**
+* 'setUserImage' => [
+   'examples' => [
+   [
+   'userImage' => 'ProfileImage.png'
+   ]
+   ],
+   'params' => [
+   'userImage' => [
+   'desc' => 'Name of the image to set',
+   'type' => 'string',
+   'required' => true
+   ]
+   ]
+   ]
+* @return type
+*/
+   function testSetUserImage() {
+   $data = $this->executeTask(
+ 'setUserImage', [
+   'portletConfig' => [ json_encode( [ "userimage" => 
"TestImage.png"] ) ]
+ ]
+   );
+
+   $this->assertEquals( true, $data->success );
+
+   return $data;
+   }
+
+   /**
+*
+* 'uploadFile' => [
+   'examples' => [],
+   'params' => []
+   ],
+*
+* @return type
+*/
+   function testUploadFile() {
+   //upload a file to tmp
+
+   //set post params
+
+   //call task
+   $data = $this->executeTask(
+ 'uploadFile', [
+   'portletConfig' => [ json_encode( [ ] ) ]
+ ]
+   );
+
+
+   print_r($data);
+
+   $this->assertEquals( true, $data->success );
+
+   return $data;
+   }
+
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib705418da98dce7f854bc157781031cdae4a446d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: SmartList: Add phpunit base tests

2017-04-28 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/350805 )

Change subject: SmartList: Add phpunit base tests
..

SmartList: Add phpunit base tests

Change-Id: I9d193e51aeded03e7f692720acac78de23b33027
---
M SmartList/SmartList.class.php
M SmartList/extension.json
A SmartList/tests/phpunit/BSApiTasksSmartListTest.php
3 files changed, 83 insertions(+), 0 deletions(-)


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

diff --git a/SmartList/SmartList.class.php b/SmartList/SmartList.class.php
index 8021dc6..53cb533 100644
--- a/SmartList/SmartList.class.php
+++ b/SmartList/SmartList.class.php
@@ -1416,4 +1416,16 @@
);
return true;
}
+
+   /**
+* UnitTestsList allows registration of additional test suites to 
execute
+* under PHPUnit. Extensions can append paths to files to the $paths 
array,
+* and since MediaWiki 1.24, can specify paths to directories, which 
will
+* be scanned recursively for any test case files with the suffix 
"Test.php".
+* @param array $paths
+*/
+   public static function onUnitTestsList( array &$paths ) {
+   $paths[] = __DIR__ . '/tests/phpunit/';
+   return true;
+   }
 }
diff --git a/SmartList/extension.json b/SmartList/extension.json
index ef0ed99..eb9b855 100644
--- a/SmartList/extension.json
+++ b/SmartList/extension.json
@@ -30,5 +30,8 @@
"SmartList": "SmartList.class.php",
"BSApiTasksSmartList": "includes/api/BSApiTasksSmartList.php"
},
+   "Hooks":{
+   "UnitTestsList": "SmartList::onUnitTestsList"
+   },
"manifest_version": 1
 }
diff --git a/SmartList/tests/phpunit/BSApiTasksSmartListTest.php 
b/SmartList/tests/phpunit/BSApiTasksSmartListTest.php
new file mode 100644
index 000..b2d7c02
--- /dev/null
+++ b/SmartList/tests/phpunit/BSApiTasksSmartListTest.php
@@ -0,0 +1,68 @@
+executeTask(
+ 'getMostActivePortlet', [
+   'portletConfig' => [ json_encode( [ ] ) ]
+ ]
+   );
+
+   $this->assertEquals( true, $data->success );
+
+   return $data;
+   }
+
+   function testGetMostEditedPages() {
+   $data = $this->executeTask(
+ 'getMostEditedPages', [
+   'portletConfig' => [ json_encode( [ ] ) ]
+ ]
+   );
+
+   $this->assertEquals( true, $data->success );
+
+   return $data;
+   }
+
+   function testGetMostVisitedPages() {
+   $data = $this->executeTask(
+ 'getMostVisitedPages', [
+   'portletConfig' => [ json_encode( [ ] ) ]
+ ]
+   );
+
+   $this->assertEquals( true, $data->success );
+
+   return $data;
+   }
+
+   function testGetYourEditsPortlet() {
+   $data = $this->executeTask(
+ 'getYourEditsPortlet', [
+   'portletConfig' => [ json_encode( [ ] ) ]
+ ]
+   );
+
+   $this->assertEquals( true, $data->success );
+
+   return $data;
+   }
+
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9d193e51aeded03e7f692720acac78de23b33027
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: PermissionManager: Update PHPUnit Test to suite save require...

2017-04-10 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/347323 )

Change subject: PermissionManager: Update PHPUnit Test to suite save 
requirements: assigned edit and siteadmin permission to sysop group
..

PermissionManager: Update PHPUnit Test to suite save requirements: assigned 
edit and siteadmin permission to sysop group

Change-Id: I5becb81ec7f746894496dd2d02d84af98877878a
---
M PermissionManager/tests/phpunit/ApiPermissionManagerTest.php
1 file changed, 2 insertions(+), 0 deletions(-)


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

diff --git a/PermissionManager/tests/phpunit/ApiPermissionManagerTest.php 
b/PermissionManager/tests/phpunit/ApiPermissionManagerTest.php
index 1668d8d..47176a7 100644
--- a/PermissionManager/tests/phpunit/ApiPermissionManagerTest.php
+++ b/PermissionManager/tests/phpunit/ApiPermissionManagerTest.php
@@ -35,6 +35,8 @@
] );
 

$testData->payload["data"]["bsPermissionManagerGroupPermissions"]["sysop"]["read"]
 = true;
+   
$testData->payload["data"]["bsPermissionManagerGroupPermissions"]["sysop"]["edit"]
 = true;
+   
$testData->payload["data"]["bsPermissionManagerGroupPermissions"]["sysop"]["siteadmin"]
 = true;
 
$aPayload = [

"groupPermission"=>$testData->payload["data"]["bsPermissionManagerGroupPermissions"],

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5becb81ec7f746894496dd2d02d84af98877878a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceFoundation[master]: BSApiTasksTestBase: Add GroupPermissions - read and writeapi

2017-04-04 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/346256 )

Change subject: BSApiTasksTestBase: Add GroupPermissions - read and writeapi
..

BSApiTasksTestBase: Add GroupPermissions - read and writeapi

Change-Id: I59d948800d895e74b712063bf10436eb076c7f2d
---
M tests/BSApiTasksTestBase.php
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation 
refs/changes/56/346256/1

diff --git a/tests/BSApiTasksTestBase.php b/tests/BSApiTasksTestBase.php
index 63fdb60..c191e7e 100644
--- a/tests/BSApiTasksTestBase.php
+++ b/tests/BSApiTasksTestBase.php
@@ -11,6 +11,10 @@
}
 
protected function executeTask( $taskName, $taskData ) {
+   global $wgGroupPermissions;
+   $wgGroupPermissions['*']['read'] = true;
+   $wgGroupPermissions['*']['writeapi'] = true;
+
$results = $this->doApiRequestWithToken([
'action' => $this->getModuleName(),
'task' => $taskName,

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I59d948800d895e74b712063bf10436eb076c7f2d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: Checklist: Cleanup PHPUnit Tests

2017-04-04 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/346252 )

Change subject: Checklist: Cleanup PHPUnit Tests
..

Checklist: Cleanup PHPUnit Tests

* cleanup removed task
* set writeapi permissions

Change-Id: I02ff351d93a5a6c9cb6941a7c09f3f502801f913
---
M Checklist/tests/phpunit/BSApiChecklistTasksTest.php
1 file changed, 8 insertions(+), 14 deletions(-)


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

diff --git a/Checklist/tests/phpunit/BSApiChecklistTasksTest.php 
b/Checklist/tests/phpunit/BSApiChecklistTasksTest.php
index 315a76e..a7ecdf9 100644
--- a/Checklist/tests/phpunit/BSApiChecklistTasksTest.php
+++ b/Checklist/tests/phpunit/BSApiChecklistTasksTest.php
@@ -20,6 +20,10 @@
// Be sure to do call the parent setup and teardown functions.
// This makes sure that all the various cleanup and restorations
// happen as they should (including the restoration for 
setMwGlobals).
+   global $wgGroupPermissions;
+   $wgGroupPermissions['*']['read'] = true;
+   $wgGroupPermissions['*']['api'] = true;
+   $wgGroupPermissions['*']['writeapi'] = true;
parent::setUp();
$this->doLogin();
$this->insertPage( "Test", "" );
@@ -63,6 +67,10 @@
 
$arrRecords = ['a', 'b', 'c' ];
 
+   global $wgGroupPermissions;
+   $wgGroupPermissions['*']['read'] = true;
+   $wgGroupPermissions['*']['writeapi'] = true;
+
$data = $this->doApiRequest( [
'action' => 'bs-checklist-tasks',
'token' => $tokens[ 'edittoken' ],
@@ -83,20 +91,6 @@
foreach ( $arrRecords as $record ) {
$this->assertContains( "* " . $record, $sContent );
}
-
-   return $data;
-   }
-
-   public function testTask_getUserTaskPermissions() {
-   $tokens = $this->getTokens();
-
-   $data = $this->doApiRequest( [
-   'action' => 'bs-checklist-tasks',
-   'token' => $tokens[ 'edittoken' ],
-   'task' => 'getUserTaskPermissions'
- ] );
-
-   $this->assertEquals( true, $data[ 0 ][ 'success' ] );
 
return $data;
}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I02ff351d93a5a6c9cb6941a7c09f3f502801f913
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Ljonka 

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


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: PermissionManager: Add PHPUnit Tests

2017-04-03 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/346104 )

Change subject: PermissionManager: Add PHPUnit Tests
..

PermissionManager: Add PHPUnit Tests

* testPermissions
* testSavePermissions
* testSetTemplateData
* testDeleteTemplate

Should be applyed on REL1_27 too

Fix copy&paste class name in pagetemplates test

Change-Id: Id37fa2400a59e254a7a9467e78e907dc09de033c
---
M PageTemplates/tests/phpunit/BSApiPageTemplatesStoreTest.php
M PermissionManager/PermissionManager.class.php
M PermissionManager/extension.json
A PermissionManager/tests/phpunit/ApiPermissionManagerTest.php
4 files changed, 178 insertions(+), 2 deletions(-)


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

diff --git a/PageTemplates/tests/phpunit/BSApiPageTemplatesStoreTest.php 
b/PageTemplates/tests/phpunit/BSApiPageTemplatesStoreTest.php
index 7d55d69..8fd4c4c 100644
--- a/PageTemplates/tests/phpunit/BSApiPageTemplatesStoreTest.php
+++ b/PageTemplates/tests/phpunit/BSApiPageTemplatesStoreTest.php
@@ -4,7 +4,7 @@
  * @group medium
  * @group API
  */
-class BSApiNamespaceStoreTest extends BSApiExtJSStoreTestBase {
+class BSApiPageTemplatesStoreTest extends BSApiExtJSStoreTestBase {
protected $iFixtureTotal = 8;
 
protected function getStoreSchema () {
diff --git a/PermissionManager/PermissionManager.class.php 
b/PermissionManager/PermissionManager.class.php
index 15b742c..9f12b95 100644
--- a/PermissionManager/PermissionManager.class.php
+++ b/PermissionManager/PermissionManager.class.php
@@ -758,4 +758,17 @@
unlink( $oldBackupFile );
}
}
+
+   /**
+* UnitTestsList allows registration of additional test suites to 
execute
+* under PHPUnit. Extensions can append paths to files to the $paths 
array,
+* and since MediaWiki 1.24, can specify paths to directories, which 
will
+* be scanned recursively for any test case files with the suffix 
"Test.php".
+* @param array $paths
+*/
+   public static function onUnitTestsList( array &$paths ) {
+   $paths[] = __DIR__ . '/tests/phpunit/';
+   return true;
+   }
+
 }
diff --git a/PermissionManager/extension.json b/PermissionManager/extension.json
index de5275e..3bf07a5 100644
--- a/PermissionManager/extension.json
+++ b/PermissionManager/extension.json
@@ -92,7 +92,8 @@
}
},
"Hooks": {
-   "LoadExtensionSchemaUpdates": 
"PermissionManager::getSchemaUpdates"
+   "LoadExtensionSchemaUpdates": 
"PermissionManager::getSchemaUpdates",
+   "UnitTestsList": "PermissionManager::onUnitTestsList"
},
"callback": "PermissionManagerHooks::onCallback",
"manifest_version": 1
diff --git a/PermissionManager/tests/phpunit/ApiPermissionManagerTest.php 
b/PermissionManager/tests/phpunit/ApiPermissionManagerTest.php
new file mode 100644
index 000..1668d8d
--- /dev/null
+++ b/PermissionManager/tests/phpunit/ApiPermissionManagerTest.php
@@ -0,0 +1,162 @@
+getTokenList( self::$users[ 'sysop' ] );
+   }
+
+   protected function getModuleName() {
+   return 'bs-permissionmanager-tasks';
+   }
+
+   public function testSavePermissions() {
+   global $wgGroupPermissions;
+   $wgGroupPermissions['*']['read'] = true;
+   $wgGroupPermissions['*']['writeapi'] = true;
+
+
+   $testData = $this->executeTask( 'permissions',[
+ "group" => $this->sGroup
+   ] );
+
+   
$testData->payload["data"]["bsPermissionManagerGroupPermissions"]["sysop"]["read"]
 = true;
+
+   $aPayload = [
+   
"groupPermission"=>$testData->payload["data"]["bsPermissionManagerGroupPermissions"],
+   
"permissionLockdown"=>$testData->payload["data"]["bsPermissionManagerPermissionLockdown"]
+   ];
+
+   $data = $this->executeTask( 'savePermissions', $aPayload );
+
+   $this->assertEquals( true, $data->success );
+
+   return $data;
+   }
+
+   /**
+* 1. create template
+* 2. update template
+* 
taskData:{"id":0,"text":"test1","leaf":true,"ruleSet":["aboutbluespice-viewspecialpage","apihighlimits","applychangetags"],"description":""}
+* @return api return data
+*/
+   public function testSetTemplateData() {
+   global $wgGroupPermissions;
+   $wgGroupPermissions['*']['read'] = true;
+   $wgGroupPermissions['*']['writeapi'] = true;
+
+   $arrRuleSet = 
["aboutbluespice-viewspecialpage","apihighlimits","applychangetags"];
+   $sTemplateName = "TestTemplate1";
+   $sTemplateDescription = "Test Description";
+
+   //crea

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: [WIP] add phpunittests and fix some type errors

2017-03-29 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/345287 )

Change subject: [WIP] add phpunittests and fix some type errors
..

[WIP] add phpunittests and fix some type errors

Change-Id: I0fc1f1aa08c35eaafb96c1c6ca05835309136884
---
M Flexiskin/Flexiskin.class.php
M Flexiskin/extension.json
M Flexiskin/includes/api/BSApiFlexiskinTasks.php
A Flexiskin/tests/phpunit/BSApiFlexiskinStoreTest.php
A Flexiskin/tests/phpunit/BSApiFlexiskinTasksTest.php
A Flexiskin/tests/phpunit/BSApiFlexiskinUploadStoreTest.php
A Flexiskin/tests/phpunit/BSApiFlexiskinUploadTest.php
7 files changed, 264 insertions(+), 4 deletions(-)


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

diff --git a/Flexiskin/Flexiskin.class.php b/Flexiskin/Flexiskin.class.php
index fbc6def..8e92f7e 100755
--- a/Flexiskin/Flexiskin.class.php
+++ b/Flexiskin/Flexiskin.class.php
@@ -197,6 +197,18 @@
return true;
}
 
+   /**
+* UnitTestsList allows registration of additional test suites to 
execute
+* under PHPUnit. Extensions can append paths to files to the $paths 
array,
+* and since MediaWiki 1.24, can specify paths to directories, which 
will
+* be scanned recursively for any test case files with the suffix 
"Test.php".
+* @param array $paths
+*/
+   public static function onUnitTestsList( array &$paths ) {
+   $paths[] = __DIR__ . '/tests/phpunit/';
+   return true;
+   }
+
public static function generateDynamicModuleStyleName(){
return 'ext.bluespice.flexiskin.skin.' . BsConfig::get( 
'MW::Flexiskin::Active' );
}
@@ -215,10 +227,15 @@
$oStatus = BsFileSystemHelper::getFileContent( "conf.json", 
"flexiskin" . DS . $sId );
 
if ( !$oStatus->isGood() ) {
-   throw new Exception( wfMessage( 
'bs-flexiskin-error-get-config', $this->getErrorMessage( $oStatus ) )->plain() 
);
+   throw new Exception( wfMessage( 
'bs-flexiskin-error-get-config', self::getErrorMessage( $oStatus ) )->plain() );
}
 
return FormatJson::decode( $oStatus->getValue() );
}
 
+   public static function getErrorMessage(Status $oStatus) {
+   $aMsg = $oStatus->getErrorsArray();
+   return $aMsg[0];
+   }
+
 }
diff --git a/Flexiskin/extension.json b/Flexiskin/extension.json
index 536b5ae..63cd644 100644
--- a/Flexiskin/extension.json
+++ b/Flexiskin/extension.json
@@ -101,7 +101,8 @@
},
"Hooks": {
"BeforePageDisplay": "Flexiskin::onBeforePageDisplay",
-   "ResourceLoaderRegisterModules": 
"Flexiskin::onResourceLoaderRegisterModules"
+   "ResourceLoaderRegisterModules": 
"Flexiskin::onResourceLoaderRegisterModules",
+   "UnitTestsList": "Flexiskin::onUnitTestsList"
},
"ResourceLoaderLESSVars": {
"bs-extjs-flexiskin-btn-upload-text": 
"@bs-extjs-theme-secondary-text-color"
diff --git a/Flexiskin/includes/api/BSApiFlexiskinTasks.php 
b/Flexiskin/includes/api/BSApiFlexiskinTasks.php
index 89f9f8e..a4673c1 100644
--- a/Flexiskin/includes/api/BSApiFlexiskinTasks.php
+++ b/Flexiskin/includes/api/BSApiFlexiskinTasks.php
@@ -129,7 +129,7 @@
return $oResponse;
}
 
-   $oStatus = BsFileSystemHelper::deleteFolder( "flexiskin" . DS . 
$sId );
+   $oStatus = BsFileSystemHelper::deleteFolder( "flexiskin" . DS . 
md5( $sId ) );
if ( BsConfig::get( "MW::Flexiskin::Active" ) == $sId ) {
BsConfig::set( "MW::Flexiskin::Active", "" );
BsConfig::saveSettings();
@@ -249,7 +249,10 @@
return $oResponse;
}
 
-   RequestContext::getMain()->getTitle()->invalidateCache();
+   //TODO: check if invalidateCache can be removed
+   if( RequestContext::getMain()->getTitle() instanceof Title ){
+   
RequestContext::getMain()->getTitle()->invalidateCache();
+   }
 
$oResponse->success = true;
$oResponse->src = wfAssembleUrl( array(
@@ -262,4 +265,8 @@
 
return $oResponse;
}
+
+   private static function getErrorMessage(Status $oStatus) {
+   return Flexiskin::getErrorMessage($oStatus);
+   }
 }
diff --git a/Flexiskin/tests/phpunit/BSApiFlexiskinStoreTest.php 
b/Flexiskin/tests/phpunit/BSApiFlexiskinStoreTest.php
new file mode 100644
index 000..9411675
--- /dev/null
+++ b/Flexiskin/tests/phpunit/BSApiFlexiskinStoreTest.php
@@ -0,0 +1,41 @@
+doLogin();
+   }
+
+   protected function getModuleName() {
+   return "bs-flexiskin-store";
+   }
+
+   publi

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[master]: InsertFile: add PHPUnit test for BSApiInsertFileLicenseStore...

2017-03-28 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/345105 )

Change subject: InsertFile: add PHPUnit test for BSApiInsertFileLicenseStore 
(bs-insertfile-license-store)
..

InsertFile: add PHPUnit test for BSApiInsertFileLicenseStore 
(bs-insertfile-license-store)

Change-Id: I5c17c700a5afcf10eb370c172c0c7207514696a9
---
M InsertFile/InsertFile.class.php
M InsertFile/extension.json
A InsertFile/tests/phpunit/BSApiInsertFileLicenseStoreTest.php
3 files changed, 143 insertions(+), 91 deletions(-)


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

diff --git a/InsertFile/InsertFile.class.php b/InsertFile/InsertFile.class.php
index 19caede..e649b7d 100644
--- a/InsertFile/InsertFile.class.php
+++ b/InsertFile/InsertFile.class.php
@@ -1,92 +1,104 @@
-http://www.blue-spice.org
- *
- * @author Markus Glaser 
- * @author Sebastian Ulbricht
- * @author Tobias Weichart 
- * @version2.23.1
- * @packageBlueSpice_Extensions
- * @subpackage InsertFile
- * @copyright  Copyright (C) 2016 Hallo Welt! GmbH, All rights reserved.
- * @licensehttp://www.gnu.org/copyleft/gpl.html GNU Public License v2 or 
later
- * @filesource
- */
-
-/**
- * Class for file upload and management assistent
- * @package BlueSpice_Extensions
- * @subpackage InsertFile
- */
-class InsertFile extends BsExtensionMW {
-   /**
-* Initialise the InsertFile extension
-*/
-   protected function initExt() {
-   wfProfileIn( 'BS::' . __METHOD__ );
-
-   $this->setHook( 'VisualEditorConfig' );
-   $this->setHook( 'BSExtendedEditBarBeforeEditToolbar' );
-
-   wfProfileOut( 'BS::' . __METHOD__ );
-   }
-
-   /**
-* Hook Handler for VisualEditorConfig Hook
-* @param Array $aConfigStandard reference
-* @param Array $aConfigOverwrite reference
-* @param Array &$aLoaderUsingDeps reference
-* @return boolean always true to keep hook alife
-*/
-   public function onVisualEditorConfig( &$aConfigStandard, 
&$aConfigOverwrite, &$aLoaderUsingDeps ) {
-   $aLoaderUsingDeps[] = 'ext.bluespice.insertFile';
-
-   // TODO SW: use string as parameter !!
-   $iIndexStandard = array_search( 
'unlink',$aConfigStandard["toolbar1"] );
-   array_splice( $aConfigStandard["toolbar1"], $iIndexStandard + 
1, 0, "bsimage" );
-   array_splice( $aConfigStandard["toolbar1"], $iIndexStandard + 
2, 0, "bsfile" );
-
-   $iIndexOverwrite = array_search( 
'unlink',$aConfigOverwrite["toolbar2"] );
-   array_splice( $aConfigOverwrite["toolbar2"], $iIndexOverwrite + 
1, 0, "bsimage" );
-
-   // Add context menu entry
-   $aConfigStandard["contextmenu"] = 
str_replace('bsContextMenuMarker', 'bsContextMenuMarker bsContextImage', 
$aConfigStandard["contextmenu"] );
-   return true;
-   }
-
-   public function onBSExtendedEditBarBeforeEditToolbar( &$aRows, 
&$aButtonCfgs ) {
-   
$this->getOutput()->addModuleStyles('ext.bluespice.insertFile.styles');
-   $this->getOutput()->addModules('ext.bluespice.insertFile');
-
-   $aRows[0]['dialogs'][20] = 'bs-editbutton-insertimage';
-   $aRows[0]['dialogs'][30] = 'bs-editbutton-insertfile';
-
-   $aButtonCfgs['bs-editbutton-insertimage'] = array(
-   'tip' => wfMessage( 'bs-insertfile-insert-image' 
)->plain()
-   );
-   $aButtonCfgs['bs-editbutton-insertfile'] = array(
-   'tip' => wfMessage( 'bs-insertfile-insert-file' 
)->plain()
-   );
-   return true;
-   }
+http://www.blue-spice.org
+ *
+ * @author Markus Glaser 
+ * @author Sebastian Ulbricht
+ * @author Tobias Weichart 
+ * @version2.23.1
+ * @packageBlueSpice_Extensions
+ * @subpackage InsertFile
+ * @copyright  Copyright (C) 2016 Hallo Welt! GmbH, All rights reserved.
+ * @licensehttp://www.gnu.org/copyleft/gpl.html GNU Public License v2 or 
later
+ * @filesource
+ */
+
+/**
+ * Class for file upload and management assistent
+ * @package BlueSpice_Extensions
+ * @subpackage InsertFile
+ */
+class InsertFile extends BsExtensionMW {
+   /**
+* Initialise the InsertFile extension
+*/
+   protected function initExt() {
+   wfProfileIn( 'BS::' . __METHOD__ );
+
+   $this->setHook( 'VisualEditorConfig' );
+   $this->setHook( 'BSExtendedEditBarBeforeEditToolbar' );
+
+   wfProfileOut( 'BS::' . __METHOD__ );
+   }
+
+   /**
+* Hook Handler for VisualEditorConfig Hook
+* @param Array $aConfigStandard reference
+* @param Array $aConfigOverwrite reference
+* @param Array &$aLoaderUsingDeps ref

[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceExtensions[REL1_27]: BSVisualEditor: Parser now is not required to create the config

2017-03-27 Thread Ljonka (Code Review)
Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/344954 )

Change subject: BSVisualEditor: Parser now is not required to create the config
..

BSVisualEditor: Parser now is not required to create the config

PatchSet2:
* A new instance of Parser is created when the given $oParser is null

PatchSet3:
* Fixed positioning of "TODO" text

Change-Id: I46014bf5bdf0d63210af39a6721c2b331af5342a
(cherry picked from commit cc0396fad5527bacb46e71a2fd5d4aae03988d01)
---
M VisualEditor/VisualEditor.class.php
1 file changed, 7 insertions(+), 2 deletions(-)


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

diff --git a/VisualEditor/VisualEditor.class.php 
b/VisualEditor/VisualEditor.class.php
index 341d67f..9b98662 100644
--- a/VisualEditor/VisualEditor.class.php
+++ b/VisualEditor/VisualEditor.class.php
@@ -407,7 +407,7 @@
 * @param string $sLangCode
 * @return array
 */
-   public function makeConfig( $oParser, $sLangCode = null ) {
+   public function makeConfig( Parser $oParser = null, $sLangCode = null ) 
{
if( $sLangCode == null ) {
$sLangCode = $this->getLanguage()->getCode();
}
@@ -431,7 +431,12 @@
unset( $aConfigs['overwrite']['auto_focus'] );
}
 
-   $aExtensionTags = $oParser->getTags(); //TODO: Use, or at least 
fall back to API "action=query&meta=siteinfo&siprop=extensiontags"
+   if( !$oParser instanceof Parser ) {
+   $oParser = new Parser();
+   }
+   //TODO: Use, or at least fall back to API
+   //"action=query&meta=siteinfo&siprop=extensiontags"
+   $aExtensionTags = $oParser->getTags();
$sAllowedTags = '';
$sSpecialTags = '';
foreach ( $aExtensionTags as $sTagName ) {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I46014bf5bdf0d63210af39a6721c2b331af5342a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: REL1_27
Gerrit-Owner: Ljonka 
Gerrit-Reviewer: Pwirth 

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


  1   2   3   >