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

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

Change subject: Initial commit
..


Initial commit

Change-Id: I605d50676078117000e155f7eef033410dd2f0e3
---
A .gitignore
A .gitreview
A Authors.class.php
A composer.json
A doc/Hooks.txt
A extension.json
A i18n/ast.json
A i18n/ba.json
A i18n/bcc.json
A i18n/bn.json
A i18n/br.json
A i18n/ca.json
A i18n/ce.json
A i18n/de.json
A i18n/diq.json
A i18n/el.json
A i18n/en.json
A i18n/es.json
A i18n/et.json
A i18n/eu.json
A i18n/fa.json
A i18n/fr.json
A i18n/gl.json
A i18n/gu.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/kn.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/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/sv.json
A i18n/tr.json
A i18n/uk.json
A i18n/vi.json
A i18n/zh-hans.json
A i18n/zh-hant.json
A languages/Authors.i18n.magic.php
A resources/bluespice.authors.css
A resources/images/bs-author-orig-bg.png
A resources/images/more-users_v2.png
A views/view.Authors.php
A views/view.AuthorsUserPageProfileImageSetting.php
62 files changed, 1,447 insertions(+), 0 deletions(-)

Approvals:
  Robert Vogel: Verified; Looks good to me, approved



diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000..d37d322
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+node_modules/
+vendor
+composer.lock
\ No newline at end of file
diff --git a/.gitreview b/.gitreview
new file mode 100644
index 000..bee6799
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,6 @@
+[gerrit]
+host=gerrit.wikimedia.org
+port=29418
+project=mediawiki/extensions/BlueSpiceAuthors.git
+track=1
+defaultrebase=0
diff --git a/Authors.class.php b/Authors.class.php
new file mode 100644
index 000..22bc111
--- /dev/null
+++ b/Authors.class.php
@@ -0,0 +1,337 @@
+http://www.bluespice.com
+ *
+ * @author Markus Glaser 
+ * @author Robert Vogel 
+ * @version2.23.1
+ * @packageBlueSpice_Extensions
+ * @subpackage Authors
+ * @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:25)
+
+/**
+ * Base class for Authors extension
+ * @package BlueSpice_Extensions
+ * @subpackage Authors
+ */
+class Authors extends BsExtensionMW {
+
+   /**
+* Initialization of Authors extension
+*/
+   protected function initExt() {
+   wfProfileIn( 'BS::'.__METHOD__ );
+   // Hooks
+   $this->setHook( 'SkinTemplateOutputPageBeforeExec' );
+   $this->setHook( 'BeforePageDisplay' );
+   $this->setHook( 'BSInsertMagicAjaxGetData' );
+   $this->setHook( 'BS:UserPageSettings', 'onUserPageSettings' );
+   $this->setHook( 'PageContentSave' );
+
+   BsConfig::registerVar( 'MW::Authors::Blacklist',   array( 
'MediaWiki default' ), BsConfig::LEVEL_PRIVATE|BsConfig::TYPE_ARRAY_STRING );
+   BsConfig::registerVar( 'MW::Authors::Limit',   10,  
 BsConfig::LEVEL_PUBLIC|BsConfig::TYPE_INT, 
'bs-authors-pref-limit', 'int' );
+   BsConfig::registerVar( 'MW::Authors::MoreImage',   
'more-users_v2.png',  BsConfig::LEVEL_PRIVATE|BsConfig::TYPE_STRING );
+   BsConfig::registerVar( 'MW::Authors::Show',true,
 BsConfig::LEVEL_PUBLIC|BsConfig::TYPE_BOOL, 
'bs-authors-pref-show', 'toggle' );
+
+   $this->mCore->registerBehaviorSwitch( 'bs_noauthors' );
+
+   wfProfileOut( 'BS::'.__METHOD__ );
+   }
+
+   /**
+* Inject tags into InsertMagic
+* @param Object $oResponse reference
+* $param String $type
+* @return always true to keep hook running
+*/
+   public function onBSInsertMagicAjaxGetData( &$oResponse, $type ) {
+   if( $type != 'switches' ) return true;
+
+   $oDescriptor = new stdClass();
+   $oDescriptor->id = 'bs:authors';
+   $oDescriptor->type = 'switch';
+   $oDescriptor->name = 'NOAUTHORS';
+   $oDescriptor->desc = wfMessage( 'bs-authors-switch-description' 
)->plain();
+   $oDescriptor->code = '__NOAUTHORS__';
+   $oDescriptor->previewable = false;
+   $oResponse->result[] = $oDescriptor;
+
+   return true;
+   }
+
+   /**
+* Hook-Handler for MediaWiki 'BeforePageDisplay' hook. Sets context if 
needed.
+* @param OutputPage $oOutputPage
+* @param Skin $oSkin
+* @return bool
+*/

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

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

Change subject: Initial commit
..

Initial commit

Change-Id: I3d0537234e8a8d51a4c42fb8d17fd4d6f0603747
---
M .gitreview
1 file changed, 1 insertion(+), 1 deletion(-)


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

diff --git a/.gitreview b/.gitreview
index ac6662d..bee6799 100644
--- a/.gitreview
+++ b/.gitreview
@@ -1,6 +1,6 @@
 [gerrit]
 host=gerrit.wikimedia.org
 port=29418
-project=mediawiki/extensions/BlueSpiceExtendedStatistics.git
+project=mediawiki/extensions/BlueSpiceAuthors.git
 track=1
 defaultrebase=0

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

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

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


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

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

Change subject: Initial commit
..

Initial commit

Change-Id: I605d50676078117000e155f7eef033410dd2f0e3
---
A .gitignore
A .gitreview
A Authors.class.php
A composer.json
A doc/Hooks.txt
A extension.json
A i18n/ast.json
A i18n/ba.json
A i18n/bcc.json
A i18n/bn.json
A i18n/br.json
A i18n/ca.json
A i18n/ce.json
A i18n/de.json
A i18n/diq.json
A i18n/el.json
A i18n/en.json
A i18n/es.json
A i18n/et.json
A i18n/eu.json
A i18n/fa.json
A i18n/fr.json
A i18n/gl.json
A i18n/gu.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/kn.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/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/sv.json
A i18n/tr.json
A i18n/uk.json
A i18n/vi.json
A i18n/zh-hans.json
A i18n/zh-hant.json
A languages/Authors.i18n.magic.php
A resources/bluespice.authors.css
A resources/images/bs-author-orig-bg.png
A resources/images/more-users_v2.png
A views/view.Authors.php
A views/view.AuthorsUserPageProfileImageSetting.php
62 files changed, 1,447 insertions(+), 0 deletions(-)


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

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000..d37d322
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+node_modules/
+vendor
+composer.lock
\ No newline at end of file
diff --git a/.gitreview b/.gitreview
new file mode 100644
index 000..ac6662d
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,6 @@
+[gerrit]
+host=gerrit.wikimedia.org
+port=29418
+project=mediawiki/extensions/BlueSpiceExtendedStatistics.git
+track=1
+defaultrebase=0
diff --git a/Authors.class.php b/Authors.class.php
new file mode 100644
index 000..22bc111
--- /dev/null
+++ b/Authors.class.php
@@ -0,0 +1,337 @@
+http://www.bluespice.com
+ *
+ * @author Markus Glaser 
+ * @author Robert Vogel 
+ * @version2.23.1
+ * @packageBlueSpice_Extensions
+ * @subpackage Authors
+ * @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:25)
+
+/**
+ * Base class for Authors extension
+ * @package BlueSpice_Extensions
+ * @subpackage Authors
+ */
+class Authors extends BsExtensionMW {
+
+   /**
+* Initialization of Authors extension
+*/
+   protected function initExt() {
+   wfProfileIn( 'BS::'.__METHOD__ );
+   // Hooks
+   $this->setHook( 'SkinTemplateOutputPageBeforeExec' );
+   $this->setHook( 'BeforePageDisplay' );
+   $this->setHook( 'BSInsertMagicAjaxGetData' );
+   $this->setHook( 'BS:UserPageSettings', 'onUserPageSettings' );
+   $this->setHook( 'PageContentSave' );
+
+   BsConfig::registerVar( 'MW::Authors::Blacklist',   array( 
'MediaWiki default' ), BsConfig::LEVEL_PRIVATE|BsConfig::TYPE_ARRAY_STRING );
+   BsConfig::registerVar( 'MW::Authors::Limit',   10,  
 BsConfig::LEVEL_PUBLIC|BsConfig::TYPE_INT, 
'bs-authors-pref-limit', 'int' );
+   BsConfig::registerVar( 'MW::Authors::MoreImage',   
'more-users_v2.png',  BsConfig::LEVEL_PRIVATE|BsConfig::TYPE_STRING );
+   BsConfig::registerVar( 'MW::Authors::Show',true,
 BsConfig::LEVEL_PUBLIC|BsConfig::TYPE_BOOL, 
'bs-authors-pref-show', 'toggle' );
+
+   $this->mCore->registerBehaviorSwitch( 'bs_noauthors' );
+
+   wfProfileOut( 'BS::'.__METHOD__ );
+   }
+
+   /**
+* Inject tags into InsertMagic
+* @param Object $oResponse reference
+* $param String $type
+* @return always true to keep hook running
+*/
+   public function onBSInsertMagicAjaxGetData( &$oResponse, $type ) {
+   if( $type != 'switches' ) return true;
+
+   $oDescriptor = new stdClass();
+   $oDescriptor->id = 'bs:authors';
+   $oDescriptor->type = 'switch';
+   $oDescriptor->name = 'NOAUTHORS';
+   $oDescriptor->desc = wfMessage( 'bs-authors-switch-description' 
)->plain();
+   $oDescriptor->code = '__NOAUTHORS__';
+   $oDescriptor->previewable = false;
+   $oResponse->result[] = $oDescriptor;
+
+   return true;
+   }
+
+   /**
+* Hook-Handler for MediaWiki 'BeforePageDisplay' hook. Sets context if 
needed.
+* @param OutputPage $oOutputPage
+* @param Skin 

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

2017-09-18 Thread Nasty (Code Review)
Nasty has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/378711 )

Change subject: Initial commit
..

Initial commit

Change-Id: Ifad9bdd7361f5bf3c61eac1503891b890933d343
---
A .gitreview
A Authors.class.php
A composer.json
A doc/Hooks.txt
A extension.json
A i18n/ast.json
A i18n/ba.json
A i18n/bcc.json
A i18n/bn.json
A i18n/br.json
A i18n/ca.json
A i18n/ce.json
A i18n/de.json
A i18n/diq.json
A i18n/el.json
A i18n/en.json
A i18n/es.json
A i18n/et.json
A i18n/eu.json
A i18n/fa.json
A i18n/fr.json
A i18n/gl.json
A i18n/gu.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/kn.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/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/sv.json
A i18n/tr.json
A i18n/uk.json
A i18n/vi.json
A i18n/zh-hans.json
A i18n/zh-hant.json
A languages/Authors.i18n.magic.php
A resources/bluespice.authors.css
A resources/images/bs-author-orig-bg.png
A resources/images/more-users_v2.png
A views/view.Authors.php
A views/view.AuthorsUserPageProfileImageSetting.php
61 files changed, 1,445 insertions(+), 0 deletions(-)


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

diff --git a/.gitreview b/.gitreview
new file mode 100644
index 000..bee6799
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,6 @@
+[gerrit]
+host=gerrit.wikimedia.org
+port=29418
+project=mediawiki/extensions/BlueSpiceAuthors.git
+track=1
+defaultrebase=0
diff --git a/Authors.class.php b/Authors.class.php
new file mode 100644
index 000..22bc111
--- /dev/null
+++ b/Authors.class.php
@@ -0,0 +1,337 @@
+http://www.bluespice.com
+ *
+ * @author Markus Glaser 
+ * @author Robert Vogel 
+ * @version2.23.1
+ * @packageBlueSpice_Extensions
+ * @subpackage Authors
+ * @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:25)
+
+/**
+ * Base class for Authors extension
+ * @package BlueSpice_Extensions
+ * @subpackage Authors
+ */
+class Authors extends BsExtensionMW {
+
+   /**
+* Initialization of Authors extension
+*/
+   protected function initExt() {
+   wfProfileIn( 'BS::'.__METHOD__ );
+   // Hooks
+   $this->setHook( 'SkinTemplateOutputPageBeforeExec' );
+   $this->setHook( 'BeforePageDisplay' );
+   $this->setHook( 'BSInsertMagicAjaxGetData' );
+   $this->setHook( 'BS:UserPageSettings', 'onUserPageSettings' );
+   $this->setHook( 'PageContentSave' );
+
+   BsConfig::registerVar( 'MW::Authors::Blacklist',   array( 
'MediaWiki default' ), BsConfig::LEVEL_PRIVATE|BsConfig::TYPE_ARRAY_STRING );
+   BsConfig::registerVar( 'MW::Authors::Limit',   10,  
 BsConfig::LEVEL_PUBLIC|BsConfig::TYPE_INT, 
'bs-authors-pref-limit', 'int' );
+   BsConfig::registerVar( 'MW::Authors::MoreImage',   
'more-users_v2.png',  BsConfig::LEVEL_PRIVATE|BsConfig::TYPE_STRING );
+   BsConfig::registerVar( 'MW::Authors::Show',true,
 BsConfig::LEVEL_PUBLIC|BsConfig::TYPE_BOOL, 
'bs-authors-pref-show', 'toggle' );
+
+   $this->mCore->registerBehaviorSwitch( 'bs_noauthors' );
+
+   wfProfileOut( 'BS::'.__METHOD__ );
+   }
+
+   /**
+* Inject tags into InsertMagic
+* @param Object $oResponse reference
+* $param String $type
+* @return always true to keep hook running
+*/
+   public function onBSInsertMagicAjaxGetData( &$oResponse, $type ) {
+   if( $type != 'switches' ) return true;
+
+   $oDescriptor = new stdClass();
+   $oDescriptor->id = 'bs:authors';
+   $oDescriptor->type = 'switch';
+   $oDescriptor->name = 'NOAUTHORS';
+   $oDescriptor->desc = wfMessage( 'bs-authors-switch-description' 
)->plain();
+   $oDescriptor->code = '__NOAUTHORS__';
+   $oDescriptor->previewable = false;
+   $oResponse->result[] = $oDescriptor;
+
+   return true;
+   }
+
+   /**
+* Hook-Handler for MediaWiki 'BeforePageDisplay' hook. Sets context if 
needed.
+* @param OutputPage $oOutputPage
+* @param Skin $oSkin
+* @return bool
+*/
+   public function onBeforePageDisplay( &$oOutputPage, &$oSkin ) {
+   if ( $this->checkContext() === false ) return true;
+   

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

2017-09-18 Thread Nasty (Code Review)
Nasty has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/378709 )

Change subject: Initial commit
..

Initial commit

Change-Id: I7d0074b382d6d43dcf82efe0b8a17e06f02f1a42
---
A .gitignore
A .gitreview
A Authors.class.php
A composer.json
A doc/Hooks.txt
A extension.json
A i18n/ast.json
A i18n/ba.json
A i18n/bcc.json
A i18n/bn.json
A i18n/br.json
A i18n/ca.json
A i18n/ce.json
A i18n/de.json
A i18n/diq.json
A i18n/el.json
A i18n/en.json
A i18n/es.json
A i18n/et.json
A i18n/eu.json
A i18n/fa.json
A i18n/fr.json
A i18n/gl.json
A i18n/gu.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/kn.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/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/sv.json
A i18n/tr.json
A i18n/uk.json
A i18n/vi.json
A i18n/zh-hans.json
A i18n/zh-hant.json
A languages/Authors.i18n.magic.php
A resources/bluespice.authors.css
A resources/images/bs-author-orig-bg.png
A resources/images/more-users_v2.png
A views/view.Authors.php
A views/view.AuthorsUserPageProfileImageSetting.php
62 files changed, 1,448 insertions(+), 0 deletions(-)


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

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000..d37d322
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+node_modules/
+vendor
+composer.lock
\ No newline at end of file
diff --git a/.gitreview b/.gitreview
new file mode 100644
index 000..bee6799
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,6 @@
+[gerrit]
+host=gerrit.wikimedia.org
+port=29418
+project=mediawiki/extensions/BlueSpiceAuthors.git
+track=1
+defaultrebase=0
diff --git a/Authors.class.php b/Authors.class.php
new file mode 100644
index 000..22bc111
--- /dev/null
+++ b/Authors.class.php
@@ -0,0 +1,337 @@
+http://www.bluespice.com
+ *
+ * @author Markus Glaser 
+ * @author Robert Vogel 
+ * @version2.23.1
+ * @packageBlueSpice_Extensions
+ * @subpackage Authors
+ * @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:25)
+
+/**
+ * Base class for Authors extension
+ * @package BlueSpice_Extensions
+ * @subpackage Authors
+ */
+class Authors extends BsExtensionMW {
+
+   /**
+* Initialization of Authors extension
+*/
+   protected function initExt() {
+   wfProfileIn( 'BS::'.__METHOD__ );
+   // Hooks
+   $this->setHook( 'SkinTemplateOutputPageBeforeExec' );
+   $this->setHook( 'BeforePageDisplay' );
+   $this->setHook( 'BSInsertMagicAjaxGetData' );
+   $this->setHook( 'BS:UserPageSettings', 'onUserPageSettings' );
+   $this->setHook( 'PageContentSave' );
+
+   BsConfig::registerVar( 'MW::Authors::Blacklist',   array( 
'MediaWiki default' ), BsConfig::LEVEL_PRIVATE|BsConfig::TYPE_ARRAY_STRING );
+   BsConfig::registerVar( 'MW::Authors::Limit',   10,  
 BsConfig::LEVEL_PUBLIC|BsConfig::TYPE_INT, 
'bs-authors-pref-limit', 'int' );
+   BsConfig::registerVar( 'MW::Authors::MoreImage',   
'more-users_v2.png',  BsConfig::LEVEL_PRIVATE|BsConfig::TYPE_STRING );
+   BsConfig::registerVar( 'MW::Authors::Show',true,
 BsConfig::LEVEL_PUBLIC|BsConfig::TYPE_BOOL, 
'bs-authors-pref-show', 'toggle' );
+
+   $this->mCore->registerBehaviorSwitch( 'bs_noauthors' );
+
+   wfProfileOut( 'BS::'.__METHOD__ );
+   }
+
+   /**
+* Inject tags into InsertMagic
+* @param Object $oResponse reference
+* $param String $type
+* @return always true to keep hook running
+*/
+   public function onBSInsertMagicAjaxGetData( &$oResponse, $type ) {
+   if( $type != 'switches' ) return true;
+
+   $oDescriptor = new stdClass();
+   $oDescriptor->id = 'bs:authors';
+   $oDescriptor->type = 'switch';
+   $oDescriptor->name = 'NOAUTHORS';
+   $oDescriptor->desc = wfMessage( 'bs-authors-switch-description' 
)->plain();
+   $oDescriptor->code = '__NOAUTHORS__';
+   $oDescriptor->previewable = false;
+   $oResponse->result[] = $oDescriptor;
+
+   return true;
+   }
+
+   /**
+* Hook-Handler for MediaWiki 'BeforePageDisplay' hook. Sets context if 
needed.
+* @param OutputPage $oOutputPage
+* @param Skin $oSkin
+