[MediaWiki-commits] [Gerrit] mediawiki...CentralAuth[master]: Make Special:GlobalAccount alias for Special:CentralAuth

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

Change subject: Make Special:GlobalAccount alias for Special:CentralAuth
..

Make Special:GlobalAccount alias for Special:CentralAuth

Bug: T73275

Change-Id: If585eeff85722a5eea2852c7cea80fcce8e7fbe0
---
M CentralAuth.alias.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth 
refs/changes/13/401013/2

diff --git a/CentralAuth.alias.php b/CentralAuth.alias.php
index 65ad5cf..11a2bb2 100644
--- a/CentralAuth.alias.php
+++ b/CentralAuth.alias.php
@@ -11,7 +11,7 @@
 
 /** English (English) */
 $specialPageAliases['en'] = [
-   'CentralAuth' => [ 'CentralAuth' ],
+   'CentralAuth' => [ 'CentralAuth', 'GlobalAccount' ],
'MergeAccount' => [ 'MergeAccount' ],
'GlobalGroupMembership' => [ 'GlobalUserRights', 
'GlobalGroupMembership' ],
'GlobalGroupPermissions' => [ 'GlobalGroupPermissions' ],

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If585eeff85722a5eea2852c7cea80fcce8e7fbe0
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Reception123 

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


[MediaWiki-commits] [Gerrit] mediawiki...RestBaseUpdateJobs[master]: Archive the RestBaseUpdateJobs extension

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

Change subject: Archive the RestBaseUpdateJobs extension
..

Archive the RestBaseUpdateJobs extension

Bug: T182561
Change-Id: I4a00b26a5bafa5fd306150ebda7e14830d6f8388
---
A ARCHIVED
D CODE_OF_CONDUCT.md
D Gruntfile.js
D RestBaseUpdateJobs.php
D RestbaseUpdate.hooks.php
D RestbaseUpdateJob.php
D composer.json
D extension.json
D i18n/ast.json
D i18n/be-tarask.json
D i18n/bs.json
D i18n/cs.json
D i18n/de.json
D i18n/en.json
D i18n/es.json
D i18n/fr.json
D i18n/gl.json
D i18n/he.json
D i18n/hr.json
D i18n/it.json
D i18n/ksh.json
D i18n/lij.json
D i18n/mk.json
D i18n/ml.json
D i18n/nb.json
D i18n/pt-br.json
D i18n/pt.json
D i18n/qqq.json
D i18n/roa-tara.json
D i18n/ru.json
D i18n/sr.json
D i18n/tl.json
D i18n/uk.json
D i18n/vi.json
D i18n/yue.json
D i18n/zh-hans.json
D i18n/zh-hant.json
D package.json
38 files changed, 2 insertions(+), 693 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/RestBaseUpdateJobs 
refs/changes/07/400707/2

diff --git a/ARCHIVED b/ARCHIVED
new file mode 100644
index 000..2a0c346
--- /dev/null
+++ b/ARCHIVED
@@ -0,0 +1,2 @@
+This extension is unmaintained and has been archived.
+See  for more information.
\ No newline at end of file
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
deleted file mode 100644
index d8e5d08..000
--- a/CODE_OF_CONDUCT.md
+++ /dev/null
@@ -1 +0,0 @@
-The development of this software is covered by a [Code of 
Conduct](https://www.mediawiki.org/wiki/Code_of_Conduct).
diff --git a/Gruntfile.js b/Gruntfile.js
deleted file mode 100644
index d9b72ff..000
--- a/Gruntfile.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/*jshint node:true */
-module.exports = function ( grunt ) {
-   grunt.loadNpmTasks( 'grunt-banana-checker' );
-   grunt.loadNpmTasks( 'grunt-jsonlint' );
-   grunt.loadNpmTasks( 'grunt-contrib-jshint' );
-
-   grunt.initConfig( {
-   banana: {
-   all: 'i18n/'
-   },
-   jshint: {
-   all: [
-   '**/*.js',
-   '!node_modules/**',
-   '!vendor/**'
-   ]
-   },
-   jsonlint: {
-   all: [
-   '**/*.json',
-   '!node_modules/**',
-   '!vendor/**'
-   ]
-   }
-   } );
-
-   grunt.registerTask( 'test', [ 'jsonlint', 'banana', 'jshint' ] );
-   grunt.registerTask( 'default', 'test' );
-};
diff --git a/RestBaseUpdateJobs.php b/RestBaseUpdateJobs.php
deleted file mode 100644
index 3e0c962..000
--- a/RestBaseUpdateJobs.php
+++ /dev/null
@@ -1,14 +0,0 @@
-https://www.mediawiki.org/wiki/Extension_registration for 
more details.'
-   );
-   return;
-} else {
-   die( 'This version of the RestBaseupdateJobs extension requires 
MediaWiki 1.25+' );
-}
diff --git a/RestbaseUpdate.hooks.php b/RestbaseUpdate.hooks.php
deleted file mode 100644
index 0e7bb23..000
--- a/RestbaseUpdate.hooks.php
+++ /dev/null
@@ -1,109 +0,0 @@
- $type, 'ts' => time() );
-   if ( $type == 'OnDependencyChange' ) {
-   $params['table'] = $table;
-   $params['recursive'] = true;
-   return $params + Job::newRootJobParams(
-   
"RestbaseUpdateJob{$type}:{$table}:{$title->getPrefixedText()}:{$title->getLatestRevID()}");
-   } else {
-   return $params;
-   }
-
-   }
-
-
-   /**
-* Schedule an async update job in the job queue.
-*
-* @param Title $title
-* @param string $action
-* @param array $extra_params
-*/
-   private static function schedule( $title, $action, $extra_params = 
array() ) {
-
-   wfDebug( "RestbaseUpdateJobHook::schedule: " . 
$title->getText() . ' - ' . $action . "\n" );
-   if ( $title->getNamespace() == NS_FILE ) {
-   // File. For now we assume the actual image or file has
-   // changed, not just the description page.
-   $depJob = new RestbaseUpdateJob(
-   $title,
-   self::getJobParams( $title, 
'OnDependencyChange', 'imagelinks' )
-   );
-   JobQueueGroup::singleton()->lazyPush( $depJob );
-   } else {
-   $jobs = array();
-   // Push one job for the page itself
-   $jobs[] = new RestbaseUpdateJob(
-   $title,
-   self::getJobParams( $title, 

[MediaWiki-commits] [Gerrit] integration/config[master]: Archive RestBaseUpdateJobs from zuul

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

Change subject: Archive RestBaseUpdateJobs from zuul 
..

Archive RestBaseUpdateJobs from zuul 

Bug: T182561
Change-Id: I81545f7818ec89c9f3d14dd7f312eb62262a0e0d
---
M zuul/layout.yaml
1 file changed, 1 insertion(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/integration/config 
refs/changes/06/400706/2

diff --git a/zuul/layout.yaml b/zuul/layout.yaml
index c1a5f0b..b1e9841 100644
--- a/zuul/layout.yaml
+++ b/zuul/layout.yaml
@@ -5504,8 +5504,7 @@
 
   - name: mediawiki/extensions/RestBaseUpdateJobs
 template:
-  - name: extension-unittests-generic
-  - name: mwgate-npm
+  - name: archived
 
   - name: mediawiki/extensions/RevisionCommentSupplement
 template:

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I81545f7818ec89c9f3d14dd7f312eb62262a0e0d
Gerrit-PatchSet: 2
Gerrit-Project: integration/config
Gerrit-Branch: master
Gerrit-Owner: Reception123 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] labs...ZppixBot[master]: Correct typo

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

Change subject: Correct typo
..

Correct typo

Change-Id: Iebf3bbfe8576fea53258ee621fed30dda40103b7
---
M public_html/index.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/tools/ZppixBot 
refs/changes/05/400105/2

diff --git a/public_html/index.php b/public_html/index.php
index 4348367..62e76a7 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -3,7 +3,7 @@
 For a list of commands, click here. 

 List of contributors, click here 
 
-If you would like ZppixBot in your channel, join #ZppixBot and say .addchannnel 

+If you would like ZppixBot in your channel, join #ZppixBot and say .addchannel 
 
  The third release of ZppixBot is now here! 
  For more information please check out https://github.com/Pix1234/ZppixBot-Source/releases/tag/v3;>the release 
tag !!!

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iebf3bbfe8576fea53258ee621fed30dda40103b7
Gerrit-PatchSet: 2
Gerrit-Project: labs/tools/ZppixBot
Gerrit-Branch: master
Gerrit-Owner: Reception123 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] labs...ZppixBot[master]: change how to request ZppixBot in channel

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

Change subject: change how to request ZppixBot in channel
..

change how to request ZppixBot in channel

Change-Id: I7726c003212a1efb1523d8df5abb2a340eda6740
---
M public_html/index.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/tools/ZppixBot 
refs/changes/04/400104/2

diff --git a/public_html/index.php b/public_html/index.php
index 6cb0e5a..4348367 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -1,9 +1,9 @@
-Home -ZppixBot
+Home - ZppixBot
 For more information, click here. 
 For a list of commands, click here. 

 List of contributors, click here 
 
-If you would like ZppixBot in your channel, join #ZppixBot and bug MacFan4000, 
Zppix or Reception123. 
+If you would like ZppixBot in your channel, join #ZppixBot and say .addchannnel 

 
  The third release of ZppixBot is now here! 
  For more information please check out https://github.com/Pix1234/ZppixBot-Source/releases/tag/v3;>the release 
tag !!!

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7726c003212a1efb1523d8df5abb2a340eda6740
Gerrit-PatchSet: 2
Gerrit-Project: labs/tools/ZppixBot
Gerrit-Branch: master
Gerrit-Owner: Reception123 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] labs...ZppixBot[master]: Missing space

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

Change subject: Missing space
..


Missing space

Change-Id: I31a0884f4fe02f64bd0a85cca7b4e6bebecc9dab
---
M public_html/about.php
1 file changed, 1 insertion(+), 1 deletion(-)

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



diff --git a/public_html/about.php b/public_html/about.php
index 73a71ed..c677947 100644
--- a/public_html/about.php
+++ b/public_html/about.php
@@ -1,4 +1,4 @@
 About -ZppixBot
 About
 
-ZppixBot is an IRC bot running https://sopel.chat;>Sopel 6.5.1 
and Python 2.7.9. The current release of ZppixBot customizations is version 
2.0. ZppixBot has lots of commands and more can be added by writing more 
modules. The home channel for ZppixBot is #ZppixBotwhere you can get help 
from the maintainers. ZppixBot's current maintainers are Zppix and 
Reception123.
\ No newline at end of file
+ZppixBot is an IRC bot running https://sopel.chat;>Sopel 6.5.1 
and Python 2.7.9. The current release of ZppixBot customizations is version 
2.0. ZppixBot has lots of commands and more can be added by writing more 
modules. The home channel for ZppixBot is #ZppixBot where you can get help 
from the maintainers. ZppixBot's current maintainers are Zppix and 
Reception123.
\ No newline at end of file

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I31a0884f4fe02f64bd0a85cca7b4e6bebecc9dab
Gerrit-PatchSet: 2
Gerrit-Project: labs/tools/ZppixBot
Gerrit-Branch: master
Gerrit-Owner: Reception123 
Gerrit-Reviewer: Reception123 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] labs...ZppixBot[master]: Missing space

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

Change subject: Missing space
..

Missing space

Change-Id: I31a0884f4fe02f64bd0a85cca7b4e6bebecc9dab
---
M public_html/about.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/tools/ZppixBot 
refs/changes/91/399891/2

diff --git a/public_html/about.php b/public_html/about.php
index 73a71ed..c677947 100644
--- a/public_html/about.php
+++ b/public_html/about.php
@@ -1,4 +1,4 @@
 About -ZppixBot
 About
 
-ZppixBot is an IRC bot running https://sopel.chat;>Sopel 6.5.1 
and Python 2.7.9. The current release of ZppixBot customizations is version 
2.0. ZppixBot has lots of commands and more can be added by writing more 
modules. The home channel for ZppixBot is #ZppixBotwhere you can get help 
from the maintainers. ZppixBot's current maintainers are Zppix and 
Reception123.
\ No newline at end of file
+ZppixBot is an IRC bot running https://sopel.chat;>Sopel 6.5.1 
and Python 2.7.9. The current release of ZppixBot customizations is version 
2.0. ZppixBot has lots of commands and more can be added by writing more 
modules. The home channel for ZppixBot is #ZppixBot where you can get help 
from the maintainers. ZppixBot's current maintainers are Zppix and 
Reception123.
\ No newline at end of file

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I31a0884f4fe02f64bd0a85cca7b4e6bebecc9dab
Gerrit-PatchSet: 2
Gerrit-Project: labs/tools/ZppixBot
Gerrit-Branch: master
Gerrit-Owner: Reception123 
Gerrit-Reviewer: jenkins-bot <>

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


[MediaWiki-commits] [Gerrit] translatewiki[master]: Change Create Wiki to CreateWiki

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

Change subject: Change Create Wiki to CreateWiki
..

Change Create Wiki to CreateWiki

Not sure if this was mentioned before, but since it's CreateWiki (in one word) 
mostly everywhere (on wiki docs, MediaWiki.org, etc.) I think it should be kept 
as CreateWiki on translatewiki.net as well.
This is just a minor change, so it shouldn't be an issue.

Change-Id: Ib2f68ff2320d60576388ddaba8fec0325ba33e45
---
M groups/MediaWiki/mwgithub.yaml
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/translatewiki 
refs/changes/11/396911/2

diff --git a/groups/MediaWiki/mwgithub.yaml b/groups/MediaWiki/mwgithub.yaml
index 4b869f2..c09ece5 100644
--- a/groups/MediaWiki/mwgithub.yaml
+++ b/groups/MediaWiki/mwgithub.yaml
@@ -349,7 +349,7 @@
 ---
 BASIC:
   id: mwgithub-createwiki
-  label: Create Wiki
+  label: CreateWiki
   description: "{{Special:MyLanguage/MediaWiki:createwiki-desc/en}}"
 
 FILES:
@@ -359,7 +359,7 @@
 ---
 BASIC:
   id: mwgithub-managewiki
-  label: Manage Wiki
+  label: ManageWiki
   description: "{{Special:MyLanguage/MediaWiki:managewiki-desc/en}}"
 
 FILES:

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib2f68ff2320d60576388ddaba8fec0325ba33e45
Gerrit-PatchSet: 2
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Reception123 
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...SwiftCloudFiles[master]: Archive SwiftCloudFiles extension

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

Change subject: Archive SwiftCloudFiles extension
..

Archive SwiftCloudFiles extension

Empty SwiftCloudFiles repo

Bug: T182384
Change-Id: I92a5804d5a8b353c5e27b782fc7a74415716d79a
---
A ARCHIVED
D CODE_OF_CONDUCT.md
D Gruntfile.js
D SwiftCloudFiles.php
D composer.json
D package.json
D php-cloudfiles-wmf/AUTHORS
D php-cloudfiles-wmf/COPYING
D php-cloudfiles-wmf/Changelog
D php-cloudfiles-wmf/README
D php-cloudfiles-wmf/cloudfiles.php
D php-cloudfiles-wmf/cloudfiles_exceptions.php
D php-cloudfiles-wmf/cloudfiles_http.php
D php-cloudfiles-wmf/debian/changelog
D php-cloudfiles-wmf/debian/compat
D php-cloudfiles-wmf/debian/control
D php-cloudfiles-wmf/debian/copyright
D php-cloudfiles-wmf/debian/dirs
D php-cloudfiles-wmf/debian/docs
D php-cloudfiles-wmf/debian/examples
D php-cloudfiles-wmf/debian/install
D php-cloudfiles-wmf/debian/rules
D php-cloudfiles-wmf/docs/classtrees_php-cloudfiles.html
D php-cloudfiles-wmf/docs/elementindex.html
D php-cloudfiles-wmf/docs/elementindex_php-cloudfiles.html
D php-cloudfiles-wmf/docs/errors.html
D php-cloudfiles-wmf/docs/index.html
D php-cloudfiles-wmf/docs/li_php-cloudfiles.html
D php-cloudfiles-wmf/docs/php-cloudfiles/CF_Authentication.html
D php-cloudfiles-wmf/docs/php-cloudfiles/CF_Connection.html
D php-cloudfiles-wmf/docs/php-cloudfiles/CF_Container.html
D php-cloudfiles-wmf/docs/php-cloudfiles/CF_Object.html
D php-cloudfiles-wmf/docs/php-cloudfiles/_cloudfiles.php.html
D php-cloudfiles-wmf/phpdoc.ini
D php-cloudfiles-wmf/phpunit.xml
D php-cloudfiles-wmf/share/cacert.pem
D php-cloudfiles-wmf/share/magic
D php-cloudfiles-wmf/share/magic.mgc
D php-cloudfiles-wmf/share/magic.mime
D php-cloudfiles-wmf/share/magic.mime.mgc
D php-cloudfiles-wmf/tests/Authentication.php
D php-cloudfiles-wmf/tests/Comprehensive.php
D php-cloudfiles-wmf/tests/FileDetection.php
D php-cloudfiles-wmf/tests/General.php
D php-cloudfiles-wmf/tests/UTF8.php
D php-cloudfiles-wmf/tests/cloudfiles_ini.php
D php-cloudfiles-wmf/tests/common.php
47 files changed, 2 insertions(+), 31,149 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SwiftCloudFiles 
refs/changes/02/396302/2


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I92a5804d5a8b353c5e27b782fc7a74415716d79a
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/SwiftCloudFiles
Gerrit-Branch: master
Gerrit-Owner: Reception123 
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...SubpageFun[master]: Convert SupageFun to use extension registration

2017-08-31 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/374971 )

Change subject: Convert SupageFun to use extension registration
..

Convert SupageFun to use extension registration

Bug: T174663
Change-Id: I6b4502a28b7ab7743b69d997cd613398c05286c5
---
A SubpageFun.hooks.php
M SubpageFun.php
A extension.json
3 files changed, 448 insertions(+), 442 deletions(-)


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

diff --git a/SubpageFun.hooks.php b/SubpageFun.hooks.php
new file mode 100644
index 000..04ad69d
--- /dev/null
+++ b/SubpageFun.hooks.php
@@ -0,0 +1,414 @@
+setFunctionHook( self::MAG_SUBPAGETITLE, array( 
__CLASS__, 'pf_subpagetitle' ), Parser::SFH_NO_HASH );
+   $parser->setFunctionHook( self::MAG_SUBPAGES, array( 
__CLASS__, 'pf_subpages' ), Parser::SFH_NO_HASH );
+   $parser->setFunctionHook( self::MAG_PARENTPAGES,  array( 
__CLASS__, 'pf_parentpages' ),  Parser::SFH_NO_HASH );
+   $parser->setFunctionHook( self::MAG_SIBLINGPAGES, array( 
__CLASS__, 'pf_siblingpages' ), Parser::SFH_NO_HASH );
+   $parser->setFunctionHook( self::MAG_SUBPAGELEVEL, array( 
__CLASS__, 'pf_subpagelevel' ), Parser::SFH_NO_HASH );
+   $parser->setFunctionHook( self::MAG_NUMBEROFSUBPAGES, array( 
__CLASS__, 'pf_numberofsubpages' ), Parser::SFH_NO_HASH );
+   $parser->setFunctionHook( self::MAG_TOPLEVELPAGE, array( 
__CLASS__, 'pf_toplevelpage' ), Parser::SFH_NO_HASH );
+
+   return true;
+   }
+
+   /**
+* Returns the extensions base installation directory.
+*
+* @since 0.5
+*
+* @return boolean
+*/
+   public static function getDir() {
+   static $dir = null;
+
+   if( $dir === null ) {
+   $dir = dirname( __FILE__ );
+   }
+   return $dir;
+   }
+
+   /*** private helper functions: ***/
+
+   /**
+* Helper function for seperating n arguments of a MW parser function
+* @return array
+*/
+   private static function getFunctionArgsArray( $args )
+   {
+   # Populate $argv with both named and numeric parameters
+   $argv = array();
+   $numargs = 0;
+
+   foreach ($args as $arg) if( ! is_object( $arg ) )
+   {
+   if( preg_match(
+   '/^([^\\n\\r]+?)\\s*=\\s*(.*)$/s', // s 
- include newline. Parameter name is not supposed to have linebreaks
+   $arg,
+   $match
+   )
+   ) {
+   $argv[ trim( $match[1] ) ] = trim( $match[2] );
+   } else {
+   $numargs++;
+   $argv[ $numargs ] = trim( $arg );
+   }
+   }
+   return $argv;
+   }
+
+   /**
+* Helper to get a new title from user input. Returns null if invalid 
title is given.
+*
+* @param Parser $parser
+* @param string $title
+*
+* @return Title|null
+*/
+   private static function newTitleObject ( Parser &$parser, $title = null 
) {
+
+   if( is_array( $title ) ) {
+   /*
+* Instead of one Title, all arguments given to the 
parser function are given.
+* This is because it makes things more generic to deal 
with extension 'Parser Fun' support
+* especially for functions only requiring an option 
title.
+*/
+   // get all possible arguments:
+   $args = ExtSubpageFun::getFunctionArgsArray( $title );
+   $title = isset( $args[1] ) ? $args[1] : null;
+   }
+
+   if( $title !== null && $title !== '' ) {
+   return Title::newFromText( $title );
+   }
+   //returns object of current page if nothing else is requested:
+   return $parser->getTitle();
+   }
+
+   /**
+* Create a list with page titles as final output of a SubpageFun 
function.
+* The output ist un-parsed wiki markup, no HTML.
+*
+* @param array  $pages array of Title elements
+* @param bool   $link whether or not to link the pages in the list
+* @param string $sep  glue between the pages
+*
+* @return string
+*/
+   protected static function createSiteList( $pages, $link = false, $sep = 
', ' ) {
+   $out = array();
+   foreach( $pages as $page ) 

[MediaWiki-commits] [Gerrit] mediawiki...SimpleChanges[master]: Convert SimpleChanges to use extension registration

2017-08-31 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/374964 )

Change subject: Convert SimpleChanges to use extension registration
..

Convert SimpleChanges to use extension registration

Bug: T174661
Change-Id: Ifbeacb8044b0ec1e4fe37e4c447d1cfb5bcbcadc
---
M SimpleChanges.php
A extension.json
2 files changed, 51 insertions(+), 29 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SimpleChanges 
refs/changes/64/374964/1

diff --git a/SimpleChanges.php b/SimpleChanges.php
index 9ccde1a..eeaa573 100644
--- a/SimpleChanges.php
+++ b/SimpleChanges.php
@@ -11,32 +11,13 @@
  * @link https://www.mediawiki.org/wiki/Extension:SimpleChanges Documentation
  * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 
2.0 or later
  */
-if ( !defined( 'MEDIAWIKI' ) ) {
-   echo( "This is an extension to the MediaWiki package and cannot be run 
standalone.\n" );
-   die( -1 );
-}
-
-// Extension credits that will show up on Special:Version
-$wgExtensionCredits['specialpage'][] = array(
-   'path' => __FILE__,
-   'name' => 'SimpleChanges',
-   'version' => '1.1',
-   'author' => 'Ike Hecht for [http://www.wikiworks.com/ WikiWorks]',
-   'url' => 'https://www.mediawiki.org/wiki/Extension:SimpleChanges',
-   'descriptionmsg' => 'simplechanges-desc',
-);
-
-$wgAutoloadClasses['SpecialSimpleChanges'] = __DIR__ . 
'/SpecialSimpleChanges.php';
-$wgSpecialPages['SimpleChanges'] = 'SpecialSimpleChanges';
-$wgExtensionMessagesFiles['SimpleChanges'] = __DIR__ . 
'/SimpleChanges.i18n.php';
-$wgMessagesDirs['SimpleChanges'] = __DIR__ . '/i18n';
-$wgExtensionMessagesFiles['SimpleChangesAlias'] = __DIR__ . 
'/SimpleChanges.alias.php';
-
-# Restrict list of changes to $wgContentNamespaces?
-$wgSimpleChangesOnlyContentNamespaces = false;
-
-# Show only the changes which are each page's most recent revisions. Avoids 
duplicate page titles.
-$wgSimpleChangesOnlyLatest = true;
-
-# Show the user who made the change
-$wgSimpleChangesShowUser = false;
+if ( function_exists( 'wfLoadExtension' ) ) {
+   wfLoadExtension( 'SimpleChanges' );
+   wfWarn(
+   'Deprecated PHP entry point used for SimpleChanges extension. ' 
.
+   'Please use wfLoadExtension instead, ' .
+   'see https://www.mediawiki.org/wiki/Extension_registration for 
more details.'
+   );
+} else {
+   die( 'This version of the SimpleChanges extension requires MediaWiki 
1.29+' );
+}
\ No newline at end of file
diff --git a/extension.json b/extension.json
new file mode 100644
index 000..4b38153
--- /dev/null
+++ b/extension.json
@@ -0,0 +1,41 @@
+{
+   "name": "SimpleChanges",
+   "version": "1.1",
+   "author": [
+   "[https://www.mediawiki.org/wiki/User:Tosfos Ike Hecht]"
+   ],
+   "type": "specialpage",
+   "url": "https://www.mediawiki.org/wiki/Extension:SimpleChanges;,
+   "descriptionmsg": "simplechanges-desc",
+   "license-name": "GPL-2.0+",
+   "AutoloadClasses": {
+   "SpecialSimpleChanges": "SpecialSimpleChanges.php"
+   },
+   "MessagesDirs": {
+   "SimpleChanges": [
+   "i18n"
+   ]
+   },
+   "ExtensionMessagesFiles": {
+   "SimpleChanges": "SimpleChanges.i18n.php",
+   "SimpleChangesAlias": "SimpleChanges.i18n.php"
+   },
+   "SpecialPages": {
+   "SimpleChanges": "SpecialSimpleChanges"
+   },
+   "config": {
+   "SimpleChangesOnlyContentNamespaces": {
+   "value": false,
+   "description": "Restrict list of changes to 
$wgContentNamespaces?"
+   },
+   "SimpleChangesOnlyLatest": {
+   "value": true,
+   "description": "Show only the changes which are each 
page's most recent revisions. Avoids duplicate page titles."
+   },
+   "SimpleChangesShowUser": {
+   "value": false,
+   "description": "Show the user who made the change."
+   }
+   },
+   "manifest_version": 2
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifbeacb8044b0ec1e4fe37e4c447d1cfb5bcbcadc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SimpleChanges
Gerrit-Branch: master
Gerrit-Owner: Reception123 

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


[MediaWiki-commits] [Gerrit] mediawiki...PageNotice[master]: Convert PageNotice to use extension registration

2017-08-31 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/374961 )

Change subject: Convert PageNotice to use extension registration
..

Convert PageNotice to use extension registration

Bug: T174657
Change-Id: I3cc4b9457c2d1e819c90bfb923fc79ee1645
---
M PageNotice.php
A extension.json
2 files changed, 44 insertions(+), 31 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PageNotice 
refs/changes/61/374961/1

diff --git a/PageNotice.php b/PageNotice.php
index 2fcd20a..2aa7b13 100644
--- a/PageNotice.php
+++ b/PageNotice.php
@@ -15,34 +15,14 @@
  * @copyright © 2007 Daniel Kinzler
  * @licence GNU General Public Licence 2.0 or later
  */
-
-if( !defined( 'MEDIAWIKI' ) ) {
-   echo( "This file is an extension to the MediaWiki software and cannot 
be used standalone.\n" );
-   die( 1 );
-}
-
-$wgExtensionCredits['other'][] = array(
-   'path'   => __FILE__,
-   'name'   => 'PageNotice',
-   'author' => 'Daniel Kinzler',
-   'url'=> 'https://mediawiki.org/wiki/Extension:PageNotice',
-   'descriptionmsg' => 'pagenotice-desc',
-);
-
-// Disable notices for individual pages, and only allow namespace-wide notices?
-$wgPageNoticeDisablePerPageNotices = false;
-
-$dir = __DIR__;
-$wgAutoloadClasses['PageNoticeHooks'] = $dir . '/PageNotice.hooks.php';
-$wgExtensionMessagesFiles['PageNotice'] = $dir . '/PageNotice.i18n.php';
-$wgMessagesDirs['PageNotice'] = __DIR__ . '/i18n';
-$wgHooks['ArticleViewHeader'][] = 'PageNoticeHooks::renderHeader';
-$wgHooks['ArticleViewFooter'][] = 'PageNoticeHooks::renderFooter';
-
-$wgResourceModules['ext.pageNotice'] = array(
-   'styles' => array(
-   'modules/ext.pageNotice.css',
-   ),
-   'localBasePath' => $dir,
-   'remoteExtPath' => 'extensions/PageNotice',
-);
+if ( function_exists( 'wfLoadExtension' ) ) {
+   wfLoadExtension( 'PageNotice' );
+   wfWarn(
+   'Deprecated PHP entry point used for PageNotice extension. ' .
+   'Please use wfLoadExtension instead, ' .
+   'see https://www.mediawiki.org/wiki/Extension_registration for 
more details.'
+   );
+   return;
+} else {
+   die( 'This version of the PageNotice extension requires MediaWiki 
1.29+' );
+   
\ No newline at end of file
diff --git a/extension.json b/extension.json
new file mode 100644
index 000..a05b0f4
--- /dev/null
+++ b/extension.json
@@ -0,0 +1,33 @@
+{
+   "name": "PageNotice",
+   "version": "2.6",
+   "author": [
+   "[https://www.mediawiki.org/wiki/User:Duesentrieb Daniel 
Kinzler]"
+   ],
+   "url": "https://www.mediawiki.org/wiki/Extension:PageNotice;,
+   "descriptionmsg": "pagenotice-desc",
+   "license-name": "GPL-2.0+",
+   "AutoloadClasses": {
+   "PageNoticeHooks": "PageNotice.hooks.php"
+   },
+   "MessagesDirs": {
+   "PageNotice": [
+   "i18n"
+   ]
+   },
+   "ExtensionMessagesFiles": {
+   "PageNotice": "PageNotice.i18n.php"
+   },
+   "Hooks": {
+   "ArticleViewHeader": "PageNoticeHooks::renderHeader",
+   "ArticleViewHeader": "PageNoticeHooks::renderFooter"
+   },
+   "ResourceModules": {
+   "ext.pageNotice": {
+   "styles": "modules/ext.pageNotice.css",
+   "localBasePath": "$dir",
+   "remoteExtPath": "extensions/PageNotice"
+   }
+   },
+   "manifest_version": 2
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3cc4b9457c2d1e819c90bfb923fc79ee1645
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PageNotice
Gerrit-Branch: master
Gerrit-Owner: Reception123 

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


[MediaWiki-commits] [Gerrit] labs...ZppixBot[master]: Add myself to contacts for adding ZppixBot to channels.

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

Change subject: Add myself to contacts for adding ZppixBot to channels.
..

Add myself to contacts for adding ZppixBot to channels.

I am also a maintainer so I can add ZppixBot to channels if needed as
well.

Change-Id: Ia0d18eb9d2f0f957c10e32040a602f19516d276a
---
M public_html/index.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/tools/ZppixBot 
refs/changes/10/374710/1

diff --git a/public_html/index.php b/public_html/index.php
index 5285058..c8495f7 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -1,7 +1,7 @@
 For more information, click here. 
 List of contributors, click here 
 
-If you need ZppixBot in your channel, please contact Zppix. 
+If you need ZppixBot in your channel, please contact Zppix or https://meta.miraheze.org/wiki/User:Reception123;>Reception123 
 
  The second release of ZppixBot is now here! 
  For more information please check out https://github.com/Pix1234/ZppixBot-Source/releases/tag/v2;>the release 
tag !!!

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia0d18eb9d2f0f957c10e32040a602f19516d276a
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/ZppixBot
Gerrit-Branch: master
Gerrit-Owner: Reception123 

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


[MediaWiki-commits] [Gerrit] mediawiki...MsLinks[master]: Convert MsLinks to use extension registration

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

Change subject: Convert MsLinks to use extension registration
..

Convert MsLinks to use extension registration

Bug: T174530
Change-Id: Ic0e494a691fef10e50e98942ed9e2fa474c80745
---
M MsLinks.php
A extension.json
2 files changed, 97 insertions(+), 70 deletions(-)


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

diff --git a/MsLinks.php b/MsLinks.php
index 84551a0..e3971a2 100755
--- a/MsLinks.php
+++ b/MsLinks.php
@@ -1,71 +1,12 @@
  'MsLinks',
-   'url' => 'https://www.mediawiki.org/wiki/Extension:MsLinks',
-   'version' => '4.0',
-   'descriptionmsg' => 'msl-desc',
-   'license-name' => 'GPL-2.0+',
-   'author' => array( '[mailto:w...@ratin.de Martin Schwindl]', 
'[mailto:w...@keyler-consult.de Martin Keyler]', 
'[https://www.mediawiki.org/wiki/User:Luis_Felipe_Schenone Luis Felipe 
Schenone]' ),
-);
-
-$wgResourceModules['ext.MsLinks'] = array(
-   'scripts' => 'MsLinks.js',
-   'messages' => array(
-   'msl-tooltip',
-   'msl-example-filename',
-   ),
-   'localBasePath' => __DIR__,
-   'remoteExtPath' => 'MsLinks',
-);
-
-$wgAutoloadClasses['MsLinks'] = __DIR__ . '/MsLinks.body.php';
-
-$wgExtensionMessagesFiles['MsLinks'] = __DIR__ . '/MsLinks.i18n.php';
-$wgMessagesDirs['MsLinks'] = __DIR__ . '/i18n';
-
-$wgHooks['ParserFirstCallInit'][] = 'MsLinks::setHook';
-$wgHooks['EditPage::showEditForm:initial'][] = 'MsLinks::start';
-$wgHooks['LanguageGetMagic'][] = 'MsLinks::getMagicWord';
-
-// Default configuration
-$wgMSL_FileTypes = array(
-   'no' => 'no_icon.png',
-   'jpg' => 'image_icon.png',
-   'gif' => 'image_icon.png',
-   'bmp' => 'image_icon.png',
-   'png' => 'image_icon.png',
-   'tiff' => 'image_icon.png',
-   'tif' => 'image_icon.png',
-   'ai' => 'image_ai_icon.png',
-   'psd' => 'image_ps_icon.png',
-   'pdf' => 'pdf_icon.png',
-   'pps' => 'pps_icon.png',
-   'ppt' => 'pps_icon.png',
-   'pptx' => 'pps_icon.png',
-   'xls' => 'xls_icon.png',
-   'xlsx' => 'xls_icon.png',
-   'doc' => 'doc_icon.png',
-   'docx' => 'doc_icon.png',
-   'dot' => 'doc_icon.png',
-   'dotx' => 'doc_icon.png',
-   'rtf' => 'doc_icon.png',
-   'txt' => 'txt_icon.png',
-   'html' => 'code_icon.png',
-   'php' => 'code_icon.png',
-   'exe' => 'exe_icon.gif',
-   'asc' => 'txt_icon.png',
-   'dwg' => 'dwg_icon.gif',
-   'zip' => 'zip_icon.png',
-   'mov' => 'movie_icon.png',
-   'mpeg' => 'movie_icon.png',
-   'mpg' => 'movie_icon.png',
-   'wmv' => 'movie_icon.png',
-   'avi' => 'movie_icon.png',
-   'mp4' => 'movie_icon.png',
-   'flv' => 'movie_flash_icon.png',
-   'wma' => 'music_icon.png',
-   'mp3' => 'music_icon.png',
-   'wav' => 'music_icon.png',
-   'mid' => 'music_icon.png',
-);
\ No newline at end of file
+if ( function_exists( 'wfLoadExtension' ) ) {
+   wfLoadExtension( 'MsLinks' );
+   wfWarn(
+   'Deprecated PHP entry point used for MsLinks extension. ' .
+   'Please use wfLoadExtension instead, ' .
+   'see https://www.mediawiki.org/wiki/Extension_registration for 
more details.'
+   );
+   return;
+} else {
+   die( 'This version of the MsLinks extension requires MediaWiki 1.29+' );
+}
\ No newline at end of file
diff --git a/extension.json b/extension.json
new file mode 100644
index 000..2fafb25
--- /dev/null
+++ b/extension.json
@@ -0,0 +1,86 @@
+{
+   "name": "MsLinks",
+   "version": "0.2.0",
+   "author": [
+   "Martin Schwindl",
+   "Martin Keyler",
+   "[https://www.mediawiki.org/wiki/User:Luis_Felipe_Schenone Luis 
Felipe Schenone]"   
+   ],
+   "type": "parserhook",
+   "url": "https://www.mediawiki.org/wiki/Extension:MsLinks;,
+   "descriptionmsg": "mslinks-desc",
+   "license-name": "GPL-2.0+",
+   "AutoloadClasses": {
+   "MsLinks": "MsLinks.body.php"
+   },
+   "MessagesDirs": {
+   "MsLinks": [
+   "i18n"
+   ]
+   },
+   "ExtensionMessagesFiles": {
+   "MsLinks": "MsLinks.i18n.php"
+   },
+   "Hooks": {
+   "ParserFirstCallInit: MsLinks::setHook",
+   "EditPage: MsLinks::start",
+   "LanguageGetMagic: MsLinks::getMagicWord"
+   },
+   "ResourceModules": {
+   "scripts": [
+   "MsLinks.js"
+   ],
+   "remoteExtPath": [
+   "MsLinks"
+   ],
+   "messages": [
+   "msl-tooltip",
+   "msl-example-filename"
+   ]
+   },
+   "config": {
+ 

[MediaWiki-commits] [Gerrit] mediawiki...GroupsSidebar[master]: Convert GroupsSidebar to use extension registration

2017-08-29 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/374683 )

Change subject: Convert GroupsSidebar to use extension registration
..

Convert GroupsSidebar to use extension registration

Bug: T174529
Change-Id: Ie29fbf4e35d76f98745f0d6b090b31b3adf790d0
---
M GroupsSidebar.php
A extension.json
2 files changed, 36 insertions(+), 19 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GroupsSidebar 
refs/changes/83/374683/1

diff --git a/GroupsSidebar.php b/GroupsSidebar.php
index 1c4d5cd..f91bbc4 100644
--- a/GroupsSidebar.php
+++ b/GroupsSidebar.php
@@ -1,21 +1,12 @@
 https://www.mediawiki.org/wiki/Extension_registration for 
more details.'
+   );
+   return;
+} else {
+   die( 'This version of the GroupsSidebar extension requires MediaWiki 
1.29+' );
 }
-
-$wgExtensionCredits['parserhook'][] = array(
-   'path' => __FILE__,
-   'name' => 'GroupsSidebar',
-   'author' => 'Church of emacs',
-   'url' => 'https://www.mediawiki.org/wiki/Extension:GroupsSidebar',
-   'descriptionmsg' => 'groupssidebar-desc',
-   'version' => '0.2.0',
-);
-
-$dir = dirname(__FILE__) . '/';
-
-$wgAutoloadClasses['GroupsSidebar'] = $dir . 'GroupsSidebar.body.php'; # Tell 
MediaWiki to load the extension body.
-$wgHooks['SkinBuildSidebar'][] = array(new GroupsSidebar(), 'efHideSidebar');
-$wgMessagesDirs['GroupsSidebar'] = __DIR__ . '/i18n';
-$wgExtensionMessagesFiles['GroupsSidebar'] = $dir . 'GroupsSidebar.i18n.php';
diff --git a/extension.json b/extension.json
new file mode 100644
index 000..7f0f510
--- /dev/null
+++ b/extension.json
@@ -0,0 +1,26 @@
+{
+   "name": "GroupsSidebar",
+   "version": "0.2.0",
+   "author": [
+   "[https://www.mediawiki.org/wiki/User:Church_of_emacs Church of 
emacs]"
+   ],
+   "type": "parserhook",
+   "url": "https://www.mediawiki.org/wiki/Extension:GroupsSidebar;,
+   "descriptionmsg": "groupssidebar-desc",
+   "license-name": "GPL-2.0+",
+   "AutoloadClasses": {
+   "GroupsSidebar": "GroupsSidebar.body.php"
+   },
+   "MessagesDirs": {
+   "GroupsSidebar": [
+   "i18n"
+   ]
+   },
+   "ExtensionMessagesFiles": {
+   "GroupsSidebar": "GroupsSidebar.i18n.php"
+   },
+   "Hooks": {
+   "SkinBuildSidebar: GroupsSidebar::efHideSidebar"
+   },
+   "manifest_version": 2
+}
\ No newline at end of file

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie29fbf4e35d76f98745f0d6b090b31b3adf790d0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GroupsSidebar
Gerrit-Branch: master
Gerrit-Owner: Reception123 

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


[MediaWiki-commits] [Gerrit] mediawiki...ArticleToCategory2[master]: Convert ArticleToCategory2 to use extension registration

2017-08-29 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/374682 )

Change subject: Convert ArticleToCategory2 to use extension registration
..

Convert ArticleToCategory2 to use extension registration

Bug: T174478
Change-Id: Id4103af2ccffd0b5b3acf4f90e8ae1b3bd7d7bcf
---
A ArticleToCategory2.hooks.php
M ArticleToCategory2.php
A extension.json
3 files changed, 215 insertions(+), 202 deletions(-)


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

diff --git a/ArticleToCategory2.hooks.php b/ArticleToCategory2.hooks.php
new file mode 100644
index 000..d842ef4
--- /dev/null
+++ b/ArticleToCategory2.hooks.php
@@ -0,0 +1,157 @@
+getNsText( 
NS_CATEGORY ) . ":" .
+   htmlspecialchars( $cname ) . 
"]]";
+   }
+   }
+   return true;
+   }
+}
+ 
+/**
+ * Function to get the excluded categories list (blacklist)
+ * the list is retrieved from Add Article to Category 2 excluded categories 
page.
+ *
+ * @return string $excludedCategories
+ **/
+   function getExcludedCategories() {
+   global $wgRequest;
+
+   $excludedCategories = array();
+   $specialcatpage='Add Article to Category 2 excluded categories';
+
+   if ( $wgRequest->getVal( 'action' ) == 'edit' ) {
+   return true;
+   }
+   $rev = Revision::newFromTitle( Title::makeTitle( 8, 
$specialcatpage ) );
+   if ( $rev ) {
+   $content = $rev->getText();
+   if ( $content != "" ) {
+   $changed = false;
+   $c = explode( "\n", $content );
+   foreach ( $c as $entry ) {
+   if ( $entry[0]==';' ) {
+   $cat = trim( substr( $entry, 1 
) );
+   $excludedCategories[] = $cat;
+   }
+   }
+ 
+   }
+   } else {
+   echo (" Page : \"" . $specialcatpage . "\" does not 
exist !");
+   }
+   return $excludedCategories;
+}
+ 
+   /**
+   * Generate the input box
+   *
+   * @param string $catpage The category article
+   * @return bool true to do the default behavior of CategoryPage::view
+   **/
+class CategoryPageView {
+   function wfCategoryChange( $catpage ) {
+   global $wgarticletocategory2ConfigBlacklist, 
$wgarticletocategory2ConfigAddcat,
+   $wgOut, $wgScript, $wgContLang, $wgUser;
+   $action = htmlspecialchars( $wgScript );
+   if ( !$catpage->mTitle->quickUserCan( 'edit' )
+   || !$catpage->mTitle->quickUserCan( 'create')
+   || !$wgUser->isAllowed( 'ArticleToCategory2') )
+   {
+   return true;
+   }
+   if ( $wgarticletocategory2ConfigBlacklist ) {
+   $excludedCategories=getExcludedCategories();
+   foreach ($excludedCategories as $value) {
+   if ( $catpage->mTitle->getText() == $value ) {
+   return true;
+   }
+   }
+   }
+   }
+   $boxtext  = wfMessage( 
'articletocategory2-create-article-under-category-text' )->text();
+   $btext =wfMessage( 
'articletocategory2-create-article-under-category-button' )->text();
+   $boxtext2 = wfMessage( 
'articletocategory2-create-category-under-category-text' )->text();
+   $btext2 =   wfMessage( 
'articletocategory2-create-category-under-category-button' )->text();
+ 
+   $cattitle = $wgContLang->getNsText( NS_CATEGORY );
+ 
+   /*** javascript blocks ***/
+   $formstart=<<
+
+function clearText(thefield) {
+   if (thefield.defaultValue==thefield.value)
+   thefield.value = ""
+}
+function addText(thefield) {
+   if (thefield.value=="")
+   thefield.value = thefield.defaultValue
+}
+ 
+function addTextTitle(thefield) {
+   if (thefield.value=="") {
+   thefield.value = thefield.defaultValue;
+   } else {
+   thefield.value = '{$cattitle}:'+thefield.value;
+   }
+}
+ 
+function isemptyx(form) {
+   if (form.title.value=="" || form.title.value==form.title.defaultValue) {
+   
+   return false;
+   }
+   return true;
+}
+
+ 
+
+   
+   
+   
+  

[MediaWiki-commits] [Gerrit] mediawiki...MagicNoCache[master]: Convert MagicNoCache to use extension registration

2017-08-29 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/374609 )

Change subject: Convert MagicNoCache to use extension registration
..

Convert MagicNoCache to use extension registration

Change-Id: Ibe97bef07b0227e23eb32022b875619769a5ea08
---
A MagicNoCache.hooks.php
M MagicNoCache.php
A extension.json
3 files changed, 52 insertions(+), 36 deletions(-)


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

diff --git a/MagicNoCache.hooks.php b/MagicNoCache.hooks.php
new file mode 100644
index 000..3ab44cb
--- /dev/null
+++ b/MagicNoCache.hooks.php
@@ -0,0 +1,14 @@
+matchAndRemove($text) ) {
+   $parser->disableCache();
+   $wgOut->enableClientCache(false);
+   }
+   return true;
+   }
+};
\ No newline at end of file
diff --git a/MagicNoCache.php b/MagicNoCache.php
index 43b7b16..88148ef 100644
--- a/MagicNoCache.php
+++ b/MagicNoCache.php
@@ -15,39 +15,14 @@
  * @license https://www.gnu.org/copyleft/gpl.html GNU General Public License 
2.0 or later
  */
 
-// Check to see if we are being called as an extension or directly
-if ( !defined( 'MEDIAWIKI' ) ) {
-   die( 'This file is an extension to MediaWiki and thus not a valid entry 
point.' );
-}
-
-// Register this extension on Special:Version
-$wgExtensionCredits['parserhook'][] = array(
-   'path' => __FILE__,
-   'name' => 'MagicNoCache',
-   'version' => '1.4.0',
-   'url' => 'https://www.mediawiki.org/wiki/Extension:MagicNoCache',
-   'author' => array(
-   'Kimon Andreou',
-   '[https://www.mediawiki.org/wiki/User:Pastakhov Pavel 
Astakhov]',
-   '...'
-   ),
-   'descriptionmsg' => 'magicnocache-desc',
-   'license-name' => 'GPL-2.0+'
-);
-
-// Allow translations for this extension
-$wgMessagesDirs['MagicNoCache'] = __DIR__ . '/i18n';
-$wgExtensionMessagesFiles['MagicNoCacheMagic'] = __DIR__ . 
'/MagicNoCache.i18n.magic.php';
-
-// Check to see if we have the magic word in the article
-$wgHooks['InternalParseBeforeLinks'][] = function( &$parser, &$text ) {
-   global $wgOut, $wgAction;
-   $mw = MagicWord::get( 'MAG_NOCACHE' );
-
-   // if it is there, remove it and disable caching
-   if ( !in_array( $wgAction, array( 'submit', 'edit') ) && 
$mw->matchAndRemove($text) ) {
-   $parser->disableCache();
-   $wgOut->enableClientCache(false);
-   }
-   return true;
-};
+if ( function_exists( 'wfLoadExtension' ) ) {
+   wfLoadExtension( 'MagicNoCache' );
+   $wgMessageDirs['MagicNoCache'] = __DIR__ . '/i18n';
+   wfWarn(
+   'Deprecated PHP entry point used for MagicNoCache extension. ' .
+   'Please use wfLoadExtension instead, ' .
+   'see https://www.mediawiki.org/wiki/Extension_registration for 
more details.'
+   );
+} else {
+   die( 'This version of the MagicNoCache extension requires MediaWiki 
1.29+' );
+}
\ No newline at end of file
diff --git a/extension.json b/extension.json
new file mode 100644
index 000..af703eb
--- /dev/null
+++ b/extension.json
@@ -0,0 +1,27 @@
+{
+   "name": "MagicNoCache",
+   "version": "1.4.0",
+   "author": [
+   "[https://www.mediawiki.org/wiki/User:Kimon Kimon Andreou]"
+   "[https://www.mediawiki.org/wiki/User:Pastakhov Pavel Astakhov",
+   ],
+   "type": "parserhook",
+   "url": "https://www.mediawiki.org/wiki/Extension:MagicNoCache;,
+   "descriptionmsg": "magicnocache-desc",
+   "license-name": "GPL-2.0+",
+   "AutoloadClasses": {
+   "MagicNoCache": "MagicNoCache.hooks.php",
+   },
+   "MessagesDirs": {
+   "MagicNoCache": [
+   "i18n"
+   ]
+   },
+   "ExtensionMessagesFiles": {
+   "MagicNoCacheMagic": "MagicNoCacheMagic.i18n.magic.php",
+   },
+   "Hooks": {
+   "InternalParseBeforeLinks": "MagicNoCacheHooks::magicwordCheck",
+   },
+   "manifest_version": 2
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibe97bef07b0227e23eb32022b875619769a5ea08
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MagicNoCache
Gerrit-Branch: master
Gerrit-Owner: Reception123 

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


[MediaWiki-commits] [Gerrit] mediawiki...WebChat[master]: Convert WebChat to use extension registartion

2017-08-29 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/374571 )

Change subject: Convert WebChat to use extension registartion
..

Convert WebChat to use extension registartion

Original request submitted by Meneth on GitHub. 
https://github.com/wikimedia/mediawiki-extensions-WebChat/pull/1

Bug: T174456
Change-Id: Id44e0587956549e5f3d722aebbb474c23b9bbd12
---
M WebChat.php
A extension.json
2 files changed, 75 insertions(+), 52 deletions(-)


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

diff --git a/WebChat.php b/WebChat.php
index e1a80b2..b32f2f3 100644
--- a/WebChat.php
+++ b/WebChat.php
@@ -15,55 +15,15 @@
  * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 
2.0 or later
  */
 
-// If this is run directly from the web die as this is not a valid entry point.
-if ( !defined( 'MEDIAWIKI' ) ) { die( 'Invalid entry point.' );
-}
-
-// Extension credits.
-$wgExtensionCredits[ 'specialpage' ][] = [
-   'path'   => __FILE__,
-   'name'   => 'WebChat',
-   'descriptionmsg' => 'webchat-desc',
-   'author' => [ 'Robert Leverington', 'Marco 27' ],
-   'url'=> 'https://www.mediawiki.org/wiki/Extension:WebChat',
-   'version'=> '1.3.0',
-];
-
-$dir = __DIR__ . '/';
-
-// Register special page.
-$wgSpecialPages['WebChat'] = 'WebChat';
-$wgAutoloadClasses['WebChat'] = $dir . 'WebChat_body.php';
-
-// Extension messages.
-$wgMessagesDirs['WebChat'] = __DIR__ . '/i18n';
-$wgExtensionMessagesFiles['WebChatAlias'] = $dir . 'WebChat.alias.php';
-
-// Default configuration.
-$wgWebChatServer  = '';
-$wgWebChatChannel = '';
-$wgWebChatClient  = '';
-$wgWebChatClients = [
-   'Mibbit' => [
-   'url' => '//embed.mibbit.com/index.html',
-   'parameters' => [
-   'noServerMotd' => 'true',
-   'server'  => '$$$server$$$',
-   'channel' => '$$$channel$$$',
-   'nick'=> '$$$nick$$$',
-   ],
-   ],
-   'freenodeChat' => [
-   'url' => '//webchat.freenode.net/',
-   'parameters' => [
-   'channels' => '$$$channel$$$',
-   'nick'=> '$$$nick$$$',
-   ],
-   ]
-];
-
-// Default permissions.
-$wgAvailableRights[] = 'webchat';
-$wgGroupPermissions['*']['webchat'] = false;
-$wgGroupPermissions['user' ]['webchat'] = true;
-$wgGroupPermissions['sysop']['webchat'] = true;
+https://www.mediawiki.org/wiki/Extension_registration for 
more details.'
+   );
+   return;
+} else {
+   die( 'This version of the FooBar extension requires MediaWiki 1.29+' );
+}
\ No newline at end of file
diff --git a/extension.json b/extension.json
new file mode 100644
index 000..544b67b
--- /dev/null
+++ b/extension.json
@@ -0,0 +1,63 @@
+{
+   "name": "WebChat",
+   "version": "1.3.0",
+   "author": [
+   "Robert Leverington",
+   "Marco 27"
+   ],
+   "url": "https://www.mediawiki.org/wiki/Extension:WebChat;,
+   "descriptionmsg": "webchat-desc",
+   "type": "specialpage",
+   "GroupPermissions": {
+   "*": {
+   "webchat": false
+   },
+   "user": {
+   "webchat": true
+   },
+   "sysop": {
+   "webchat": true
+   }
+   },
+   "AvailableRights": [
+   "webchat"
+   ],
+   "SpecialPages": {
+   "WebChat": "WebChat"
+   },
+   "MessagesDirs": {
+   "WebChat": [
+   "i18n"
+   ]
+   },
+   "ExtensionMessagesFiles": {
+   "WebChatAlias": "WebChat.alias.php"
+   },
+   "AutoloadClasses": {
+   "WebChat": "WebChat_body.php"
+   },
+   "config": {
+   "WebChatServer": "",
+   "WebChatChannel": "",
+   "WebChatClient": "",
+   "WebChatClients": {
+   "Mibbit": {
+   "url": "//embed.mibbit.com/index.html",
+   "parameters": {
+   "noServerMotd": "true",
+   "server": "$$$server$$$",
+   "channel": "$$$channel$$$",
+   "nick": "$$$nick$$$"
+   }
+   },
+   "freenodeChat": {
+   "url": "//webchat.freenode.net/",
+   "parameters": {
+   "channels": "$$$channel$$$",
+   "nick": "$$$nick$$$"
+   }
+   

[MediaWiki-commits] [Gerrit] mediawiki...WebChat[master]: Allow any protocol to use Mibbit chat

2017-08-29 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/374565 )

Change subject: Allow any protocol to use Mibbit chat
..

Allow any protocol to use Mibbit chat

Currently it forces HTTP, but many wikis are now running HTTPS if not
HTTPS-only so it should be allowed to be loaded from any protocol.

Change-Id: I76b14534e7bbaa65e8694d94fb218f970aee9a9c
---
M WebChat.php
1 file changed, 2 insertions(+), 2 deletions(-)


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

diff --git a/WebChat.php b/WebChat.php
index 0604601..e1a80b2 100644
--- a/WebChat.php
+++ b/WebChat.php
@@ -45,7 +45,7 @@
 $wgWebChatClient  = '';
 $wgWebChatClients = [
'Mibbit' => [
-   'url' => 'http://embed.mibbit.com/index.html',
+   'url' => '//embed.mibbit.com/index.html',
'parameters' => [
'noServerMotd' => 'true',
'server'  => '$$$server$$$',
@@ -64,6 +64,6 @@
 
 // Default permissions.
 $wgAvailableRights[] = 'webchat';
-$wgGroupPermissions['*']['webchat'] = false;
+$wgGroupPermissions['*']['webchat'] = false;
 $wgGroupPermissions['user' ]['webchat'] = true;
 $wgGroupPermissions['sysop']['webchat'] = true;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I76b14534e7bbaa65e8694d94fb218f970aee9a9c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WebChat
Gerrit-Branch: master
Gerrit-Owner: Reception123 

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


[MediaWiki-commits] [Gerrit] mediawiki...CreateRedirect[master]: Convert CreateRedirect to use extension registration

2017-08-25 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/373736 )

Change subject: Convert CreateRedirect to use extension registration
..

Convert CreateRedirect to use extension registration

Bug: T174131
Change-Id: I697d2973fbed517801213827fca69472faf1fbfe
---
M CreateRedirect.body.php
M CreateRedirect.php
A extension.json
3 files changed, 65 insertions(+), 51 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CreateRedirect 
refs/changes/36/373736/1

diff --git a/CreateRedirect.body.php b/CreateRedirect.body.php
index f959a54..79da848 100644
--- a/CreateRedirect.body.php
+++ b/CreateRedirect.body.php
@@ -206,6 +206,34 @@
 END
);
}
+   
+   /**
+ * Adds a shortcut link pointing to Special:CreateRedirect to the "toolbox" 
menu.
+ * If applicable, also adds a reference to the current title as a GET param.
+ *
+ * @return Boolean: true
+ */
+function createRedirect_AddToolboxLink( &$tpl ) {
+   global $wgRequest;
+
+   // 1. Determine whether to actually add the link at all.
+   // There are certain cases, e.g. in the edit dialog, in a special page,
+   // where it's inappropriate for the link to appear.
+   // 2. Check the title. Is it a "Special:" page? Don't display the link.
+   $action = $wgRequest->getText( 'action', 'view' );
+   $title = $tpl->getSkin()->getTitle();
+
+   if( $action != 'view' && $action != 'purge' && !$title->isSpecialPage() 
) {
+   return true;
+   }
+
+   // 3. Add the link!
+   $href = SpecialPage::getTitleFor( 'CreateRedirect', 
$title->getPrefixedText() )->getLocalURL();
+   echo Html::rawElement( 'li', null, Html::element( 'a', array( 'href' => 
$href ), wfMessage( 'createredirect' )->text() ) );
+
+   return true;
+}
+
 
protected function getGroupName() {
return 'pagetools';
diff --git a/CreateRedirect.php b/CreateRedirect.php
index f9b8cc6..b19d219 100644
--- a/CreateRedirect.php
+++ b/CreateRedirect.php
@@ -29,55 +29,14 @@
  * along with CreateRedirect.  If not, see .
  */
 
-if( !defined( 'MEDIAWIKI' ) ) {
-   echo( "This file is an extension to the MediaWiki software and cannot 
be used standalone.\n" );
-   die( 1 );
-}
-
-// Add this extension to Special:Credits.
-$wgExtensionCredits['specialpage'][] = array(
-   'path'  => __FILE__,
-   'name' => 'CreateRedirect',
-   'author' => 'Marco Zafra',
-   'version' => '1.1.0',
-   'url' => 'https://www.mediawiki.org/wiki/Extension:CreateRedirect',
-   'descriptionmsg' => 'createredirect-desc',
-);
-
-// Set up the actual extension functionality.
-$dir = dirname( __FILE__ ) . '/';
-$wgAutoloadClasses['SpecialCreateRedirect'] = $dir . 'CreateRedirect.body.php';
-$wgSpecialPages['CreateRedirect'] = 'SpecialCreateRedirect';
-$wgMessagesDirs['CreateRedirect'] = __DIR__ . '/i18n';
-$wgExtensionMessagesFiles['CreateRedirect'] = $dir . 'CreateRedirect.i18n.php';
-$wgExtensionMessagesFiles['CreateRedirectAlias'] = $dir . 
'CreateRedirect.alias.php';
-
-// Add a shortcut link to the toolbox.
-$wgHooks['SkinTemplateToolboxEnd'][] = 'createRedirect_addToolboxLink';
-
-/**
- * Adds a shortcut link pointing to Special:CreateRedirect to the "toolbox" 
menu.
- * If applicable, also adds a reference to the current title as a GET param.
- *
- * @return Boolean: true
- */
-function createRedirect_AddToolboxLink( &$tpl ) {
-   global $wgRequest;
-
-   // 1. Determine whether to actually add the link at all.
-   // There are certain cases, e.g. in the edit dialog, in a special page,
-   // where it's inappropriate for the link to appear.
-   // 2. Check the title. Is it a "Special:" page? Don't display the link.
-   $action = $wgRequest->getText( 'action', 'view' );
-   $title = $tpl->getSkin()->getTitle();
-
-   if( $action != 'view' && $action != 'purge' && !$title->isSpecialPage() 
) {
-   return true;
-   }
-
-   // 3. Add the link!
-   $href = SpecialPage::getTitleFor( 'CreateRedirect', 
$title->getPrefixedText() )->getLocalURL();
-   echo Html::rawElement( 'li', null, Html::element( 'a', array( 'href' => 
$href ), wfMessage( 'createredirect' )->text() ) );
-
-   return true;
+if ( function_exists( 'wfLoadExtension' ) ) {
+   wfLoadExtension( 'CreateRedirect' );
+   $wgMessageDirs['CreateRedirect'] = __DIR__ . '/i18n';
+   wfWarn(
+   'Deprecated PHP entry point used for CreateRedirect extension. 
' .
+   'Please use wfLoadExtension instead, ' .
+   'see https://www.mediawiki.org/wiki/Extension_registration for 
more details.'
+   );
+} else {
+   die( 'This version of the CreateRedirect extension requires MediaWiki 
1.29+' );
 }
diff --git a/extension.json b/extension.json
new file mode 100644
index 000..1ee955a

[MediaWiki-commits] [Gerrit] mediawiki...GraphViz[master]: Convert GraphViz to use extension registration

2017-08-25 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/373735 )

Change subject: Convert GraphViz to use extension registration
..

Convert GraphViz to use extension registration

Bug: T173209
Change-Id: I8c8a47b13ca79be5789f796fe77e2b4fff28cb03
---
M GraphViz.php
M GraphViz_body.php
A extension.json
3 files changed, 111 insertions(+), 93 deletions(-)


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

diff --git a/GraphViz.php b/GraphViz.php
index 77acb12..7e1b59d 100644
--- a/GraphViz.php
+++ b/GraphViz.php
@@ -30,97 +30,14 @@
  * @file
  * @ingroup Extensions
  */
-
-define( 'GraphViz_VERSION', '2.1.0' );
-
-/**
- * The GraphViz settings class.
- */
-class GraphVizSettings {
-   /**
-* dot executable path
-* Windows Default: C:/Programme/ATT/Graphviz/bin/
-* Other Platform : /usr/local/bin/dot
-*
-* '/' will be converted to '\\' later on, so feel free how to write 
your path C:/ or C:\\
-*
-* @var string $execPath
-*/
-   public $execPath;
-
-   /**
-* mscgen executable path
-* Commonly '/usr/bin/', '/usr/local/bin/' or (if set) '$DOT_PATH/'.
-*
-* '/' will be converted to '\\' later on, so feel free how to write 
your path C:/ or C:\\
-*
-* @var string $mscgenPath
-*/
-   public $mscgenPath;
-
-   /**
-* default image type for the output of dot or mscgen
-* The "default default" is png.
-*
-* @var string $defaultImageType
-*/
-   public $defaultImageType;
-
-   /**
-* Whether or not to automatically create category pages for images 
created by this extension.
-* yes|no (case insensitive). The default is no.
-*
-* @var string $createCategoryPages
-*/
-   public $createCategoryPages;
-
-   /**
-* Constructor for setting configuration variable defaults.
-*/
-   public function __construct() {
-   // Set execution path
-   if ( stristr( PHP_OS, 'WIN' ) && !stristr( PHP_OS, 'Darwin' ) ) 
{
-   $this->execPath = 'C:/Program Files/Graphviz/bin/';
-   } else {
-   $this->execPath = '/usr/bin/';
-   }
-
-   $this->mscgenPath = '';
-   $this->defaultImageType = 'png';
-   $this->createCategoryPages = 'no';
-   }
-};
-
-if ( defined( 'MEDIAWIKI' ) ) {
-   $GLOBALS['wgGraphVizSettings'] = new GraphVizSettings();
-
-   // self executing anonymous function to prevent global scope assumptions
-   call_user_func( function () {
-   $dir = __DIR__ . '/';
-
-   $GLOBALS['wgMessagesDirs']['GraphViz'] = $dir . 'i18n';
-   $GLOBALS['wgAutoloadClasses']['GraphViz'] = $dir . 
"GraphViz_body.php";
-   $GLOBALS['wgAutoloadClasses']['GraphRenderParms'] = $dir . 
"GraphRenderParms.php";
-   $GLOBALS['wgAutoloadClasses']['UploadLocalFile'] = $dir . 
"UploadLocalFile.php";
-   $GLOBALS['wgAutoloadClasses']['UploadFromLocalFile'] = $dir . 
"UploadLocalFile.php";
-   $GLOBALS['wgHooks']['ParserFirstCallInit'][] = 
'GraphViz::onParserInit';
-   $GLOBALS['wgHooks']['ArticleDeleteComplete'][] = 
'GraphViz::onArticleDeleteComplete';
-   $GLOBALS['wgHooks']['UnitTestsList'][] = 
'GraphViz::onUnitTestsList';
-   $GLOBALS['wgHooks']['PageContentSave'][] = 
'GraphViz::onPageContentSave';
-   $GLOBALS['wgHooks']['RejectParserCacheValue'][] = 
'GraphViz::onRejectParserCacheValue';
-   $GLOBALS['wgExtensionCredits']['parserhook'][] = [
-   'name' => 'Graphviz',
-   'path' => __FILE__,
-   'version' => GraphViz_VERSION,
-   'author' => [
-   '[http://wickle.com CoffMan]',
-   '[mailto://arno.ven...@gmail.com 
MasterOfDesaster]',
-   '[http://hummel-universe.net Thomas Hummel]',
-   '[mailto://welt...@gmail.com Keith Welter]'
-   ],
-   'url' => 
'https://www.mediawiki.org/wiki/Extension:GraphViz',
-   'descriptionmsg' => 'graphviz-desc',
-   'license-name' => 'GPL-2.0+'
-   ];
-   } );
+if ( function_exists( 'wfLoadExtension' ) ) {
+   wfLoadExtension( 'GraphViz' );
+   $wgMessageDirs['GraphViz'] = __DIR__ . '/i18n';
+   wfWarn(
+   'Deprecated PHP entry point used for GraphViz extension. ' .
+   'Please use wfLoadExtension instead, ' .
+   'see https://www.mediawiki.org/wiki/Extension_registration for 
more details.'
+   );
+} else {

[MediaWiki-commits] [Gerrit] mediawiki...ContributionScores[master]: Convert ContributionScores to use extension registration.

2017-08-24 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/373567 )

Change subject: Convert ContributionScores to use extension registration.
..

Convert ContributionScores to use extension registration.

Bug: T174046
Change-Id: I5fbe985cf713634316168ee6bab9a5f5e841227f
---
M ContributionScores.php
M ContributionScores_body.php
A extension.json
3 files changed, 123 insertions(+), 88 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContributionScores 
refs/changes/67/373567/1

diff --git a/ContributionScores.php b/ContributionScores.php
index 508e4d6..74fb368 100644
--- a/ContributionScores.php
+++ b/ContributionScores.php
@@ -3,91 +3,14 @@
  * \brief Contains setup code for the Contribution Scores Extension.
  */
 
-# Not a valid entry point, skip unless MEDIAWIKI is defined
-if ( !defined( 'MEDIAWIKI' ) ) {
-   echo 'Contribution Scores extension';
-   exit( 1 );
-}
-
-$wgExtensionCredits['specialpage'][] = [
-   'path' => __FILE__,
-   'name' => 'Contribution Scores',
-   'url' => 'https://www.mediawiki.org/wiki/Extension:Contribution_Scores',
-   'author' => 'Tim Laqua',
-   'descriptionmsg' => 'contributionscores-desc',
-   'version' => '1.25.0'
-];
-
-define( 'CONTRIBUTIONSCORES_MAXINCLUDELIMIT', 50 );
-$wgContribScoreReports = null;
-
-// These settings can be overridden in LocalSettings.php.
-
-// Set to true to exclude bots from the reporting.
-$wgContribScoreIgnoreBlockedUsers = false;
-
-// Set to true to exclude blocked users from the reporting.
-$wgContribScoreIgnoreBots = false;
-
-// Set to true to use real user names when available. Only for MediaWiki 1.19 
and later.
-$wgContribScoresUseRealName = false;
-
-// Set to true to disable cache for parser function and inclusion of table.
-$wgContribScoreDisableCache = false;
-
-$wgAutoloadClasses['ContributionScores'] = __DIR__ . 
'/ContributionScores_body.php';
-$wgSpecialPages['ContributionScores'] = 'ContributionScores';
-
-$wgMessagesDirs['ContributionScores'] = __DIR__ . '/i18n';
-$wgExtensionMessagesFiles['ContributionScoresAlias'] = __DIR__ . 
'/ContributionScores.alias.php';
-$wgExtensionMessagesFiles['ContributionScoresMagic'] =
-   __DIR__ . '/ContributionScores.i18n.magic.php';
-
-$wgHooks['ParserFirstCallInit'][] = 'efContributionScores_Setup';
-
-function efContributionScores_Setup( &$parser ) {
-   $parser->setFunctionHook( 'cscore', 'efContributionScores_Render' );
-
-   return true;
-}
-
-function efContributionScores_Render( &$parser, $usertext, $metric = 'score' ) 
{
-   global $wgContribScoreDisableCache;
-
-   if ( $wgContribScoreDisableCache ) {
-   $parser->disableCache();
-   }
-
-   $user = User::newFromName( $usertext );
-   $dbr = wfGetDB( DB_SLAVE );
-
-   if ( $user instanceof User && $user->isLoggedIn() ) {
-   global $wgLang;
-
-   if ( $metric == 'score' ) {
-   $res = $dbr->select( 'revision',
-   'COUNT(DISTINCT 
rev_page)+SQRT(COUNT(rev_id)-COUNT(DISTINCT rev_page))*2 AS wiki_rank',
-   [ 'rev_user' => $user->getID() ] );
-   $row = $dbr->fetchObject( $res );
-   $output = $wgLang->formatNum( round( $row->wiki_rank, 0 
) );
-   } elseif ( $metric == 'changes' ) {
-   $res = $dbr->select( 'revision',
-   'COUNT(rev_id) AS rev_count',
-   [ 'rev_user' => $user->getID() ] );
-   $row = $dbr->fetchObject( $res );
-   $output = $wgLang->formatNum( $row->rev_count );
-   } elseif ( $metric == 'pages' ) {
-   $res = $dbr->select( 'revision',
-   'COUNT(DISTINCT rev_page) AS page_count',
-   [ 'rev_user' => $user->getID() ] );
-   $row = $dbr->fetchObject( $res );
-   $output = $wgLang->formatNum( $row->page_count );
-   } else {
-   $output = wfMessage( 'contributionscores-invalidmetric' 
)->text();
-   }
-   } else {
-   $output = wfMessage( 'contributionscores-invalidusername' 
)->text();
-   }
-
-   return $parser->insertStripItem( $output, $parser->mStripState );
-}
+if ( function_exists( 'wfLoadExtension' ) ) {
+   wfLoadExtension( 'ContributionScores' );
+   $wgMessageDirs['ContributionScores'] = __DIR__ . '/i18n';
+   wfWarn(
+   'Deprecated PHP entry point used for ContributionScores 
extension. ' .
+   'Please use wfLoadExtension instead, ' .
+   'see https://www.mediawiki.org/wiki/Extension_registration for 
more details.'
+   );
+} else {
+   die( 'This version of the ContributionScores 

[MediaWiki-commits] [Gerrit] mediawiki...AuthorProtect[master]: Convert AuthorProtect to use extension registration.

2017-08-24 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/373563 )

Change subject: Convert AuthorProtect to use extension registration.
..

Convert AuthorProtect to use extension registration.

Bug: T174042
Change-Id: I27fec954e8a5c8ea46c8d040051be2288161bcd8
---
A AuthorProtect.hooks.php
M AuthorProtect.php
A extension.json
3 files changed, 286 insertions(+), 257 deletions(-)


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

diff --git a/AuthorProtect.hooks.php b/AuthorProtect.hooks.php
new file mode 100644
index 000..312cc18
--- /dev/null
+++ b/AuthorProtect.hooks.php
@@ -0,0 +1,232 @@
+mRights = null;
+   $user->getRights(); // delay hook execution for 
compatibility w/ ConfirmAccount
+   $act = ( $action == '' || $action == 'view' ) ? 'edit' 
: $action;
+   $wgAuthorProtectDelayRun = false;
+   if ( self::userIsAuthor( $title ) && 
self::isAuthorProtected( $title, $act ) ) {
+   $result = true;
+   return false;
+   }
+   }
+   $result = null;
+   return true;
+   }
+
+   public static function AssignAuthor( $user, &$aRights ) {
+   global $wgTitle;
+
+   // don't assign author to anons... messes up logging stuff.
+   // plus it's all user_id based so it is impossible to 
differentiate one anon from another
+   if ( self::userIsAuthor( $wgTitle ) && $user->isLoggedIn() ) {
+   $aRights[] = 'author';
+   $aRights = array_unique( $aRights );
+   }
+   // assign protect too if we need to
+   global $wgAuthorProtectDoProtect;
+   if ( $wgAuthorProtectDoProtect ) {
+   $aRights[] = 'protect';
+   $aRights = array_unique( $aRights );
+   }
+   return true;
+   }
+
+   private static function AuthorProtectAssignProtect() {
+   global $wgAuthorProtectDoProtect, $wgUser;
+   $wgAuthorProtectDoProtect = true;
+   $wgUser->mRights = null;
+   $wgUser->getRights(); // re-trigger the above function to 
assign the protect right
+   $wgAuthorProtectDoProtect = false;
+   }
+
+   private static function AuthorProtectUnassignProtect() {
+   global $wgUser;
+   $wgUser->mRights = null;
+   $wgUser->getRights();
+   }
+
+   public static function MakeContentAction( $skin, &$links ) {
+   global $wgUser, $wgRequest;
+
+   $title = $skin->getTitle();
+   if ( self::userIsAuthor( $title ) && $wgUser->isAllowed( 
'authorprotect' ) && !$wgUser->isAllowed( 'protect' ) ) {
+   $action = $wgRequest->getText( 'action' );
+   $links['actions']['authorprotect'] = array(
+   'class' => $action == 'authorprotect' ? 
'selected' : false,
+   'text' => wfMessage( 
self::AuthorProtectMessage( $title ) ),
+   'href' => $title->getLocalUrl( 
'action=authorprotect' ),
+   );
+   }
+   return true;
+   }
+
+   public static function AuthorProtectForm( $action, $article ) {
+   if ( $action != 'authorprotect' ) {
+   return true; // unknown action, so state that the 
action doesn't exist
+   }
+   global $wgOut, $wgUser, $wgRequest, $wgRestrictionTypes;
+   if ( !$wgUser->isAllowed( 'authorprotect' ) ) {
+   throw new PermissionsError( 'authorprotect' );
+   }
+   if ( !self::userIsAuthor( $article->getTitle() ) ) {
+   $wgOut->setPageTitle( wfMessage( 'errorpagetitle' ) );
+   $wgOut->addWikiMsg( 'authorprotect-notauthor', 
$user->getName() );
+   return false;
+   }
+   $wgOut->setPageTitle( wfMessage( 'authorprotect' ) );
+   if ( !$wgRequest->wasPosted() ) {
+   $wgOut->addHTML( self::AuthorProtectMakeProtectForm( 
$article->getTitle() ) );
+   } else {
+   if ( !$wgUser->matchEditToken( $wgRequest->getText( 
'wpToken' ) ) ) {
+   $wgOut->setPageTitle( wfMessage( 
'errorpagetitle' ) );
+   $wgOut->addWikiMsg( 'sessionfailure' );
+   return false;
+   }
+   $restrictions = array();
+   $expiration = array();
+   $expiry = self::AuthorProtectExpiry( 

[MediaWiki-commits] [Gerrit] mediawiki...AdminLinks[master]: Convert AdminLinks to use extension registration.

2017-08-24 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/373540 )

Change subject: Convert AdminLinks to use extension registration.
..

Convert AdminLinks to use extension registration.

Bug: T173058
Change-Id: I48de7cde2f17d99403000dc9427368c79e7b1621
---
M AdminLinks.php
A extension.json
2 files changed, 46 insertions(+), 27 deletions(-)


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

diff --git a/AdminLinks.php b/AdminLinks.php
index 8a63a5e..cf95bbf 100644
--- a/AdminLinks.php
+++ b/AdminLinks.php
@@ -5,31 +5,14 @@
  * @author Yaron Koren
  */
 
-if ( defined( 'MEDIAWIKI' ) ) {
-   // credits
-   $GLOBALS['wgExtensionCredits']['specialpage'][] = array(
-   'path' => __FILE__,
-   'name' => 'Admin Links',
-   'version' => '0.2.3',
-   'author' => 'Yaron Koren',
-   'url' => 'https://www.mediawiki.org/wiki/Extension:Admin_Links',
-   'descriptionmsg' => 'adminlinks-desc',
-   'license-name' => 'GPL-2.0+'
+if ( function_exists( 'wfLoadExtension' ) ) {
+   wfLoadExtension( 'AdminLinks' );
+   $wgMessageDirs['AdminLinks'] = __DIR__ . '/i18n';
+   wfWarn(
+   'Deprecated PHP entry point used for AdminLinks extension. ' .
+   'Please use wfLoadExtension instead, ' .
+   'see https://www.mediawiki.org/wiki/Extension_registration for 
more details.'
);
-
-   $GLOBALS['wgAdminLinksIP'] = __DIR__ . '/';
-   $GLOBALS['wgMessagesDirs']['AdminLinks'] = __DIR__ . '/i18n';
-   $GLOBALS['wgExtensionMessagesFiles']['AdminLinksAlias'] =
-   $GLOBALS['wgAdminLinksIP'] . 'AdminLinks.alias.php';
-   $GLOBALS['wgSpecialPages']['AdminLinks'] = 'AdminLinks';
-   $GLOBALS['wgHooks']['PersonalUrls'][] = 'AdminLinks::addURLToUserLinks';
-   $GLOBALS['wgAvailableRights'][] = 'adminlinks';
-   // by default, sysops see the link to this page
-   $GLOBALS['wgGroupPermissions']['sysop']['adminlinks'] = true;
-   $GLOBALS['wgAutoloadClasses']['AdminLinks']
-   = $GLOBALS['wgAutoloadClasses']['ALTree']
-   = $GLOBALS['wgAutoloadClasses']['ALSection']
-   = $GLOBALS['wgAutoloadClasses']['ALRow']
-   = $GLOBALS['wgAutoloadClasses']['ALItem']
-   = $GLOBALS['wgAdminLinksIP'] . 'AdminLinks_body.php';
-}
+} else {
+   die( 'This version of the AdminLinks extension requires MediaWiki 
1.29+' );
+}
\ No newline at end of file
diff --git a/extension.json b/extension.json
new file mode 100644
index 000..b9c0d6a
--- /dev/null
+++ b/extension.json
@@ -0,0 +1,36 @@
+{
+   "name": "AdminLinks",
+   "version": "0.2.3",
+   "author": [
+   "[https://www.mediawiki.org/wiki/User:Yaron_Koren Yaron Koren]"
+   ],
+   "url": "https://www.mediawiki.org/wiki/Extension:AdminLinks;,
+   "descriptionmsg": "adminlinks-desc",
+   "license-name": "GPL-2.0+",
+   "AutoloadClasses": {
+   "AdminLinks": "AdminLinks_body.php",
+   },
+   "MessagesDirs": {
+   "AdminLinks": [
+   "i18n"
+   ]
+   },
+   "ExtensionMessagesFiles": {
+   "AdminLinksIP": "AdminLinks.alias.php"
+   },
+   "Hooks": {
+   "PersonalUrls": "AdminLinks::addURLToUserLinks",
+   },
+   "SpecialPages": {
+   "AdminLinks": "AdminLinks"
+   },
+   "AvailableRights": [
+   "adminlinks",
+   ],
+   "GroupPermissions": {
+   "sysop": {
+   "adminlinks": true
+   }
+   },
+   "manifest_version": 2
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I48de7cde2f17d99403000dc9427368c79e7b1621
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/AdminLinks
Gerrit-Branch: master
Gerrit-Owner: Reception123 

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


[MediaWiki-commits] [Gerrit] mediawiki...LastModified[master]: Converting LastModified to extension registration. I haven't...

2017-08-24 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/373503 )

Change subject: Converting LastModified to extension registration. I haven't 
really done this before so I'm not sure if everything is correctly done.
..

Converting LastModified to extension registration. I haven't really done
this before so I'm not sure if everything is correctly done.

Change-Id: I8832c46522fe79035495e08bf498793e17252cb8
Bug-Id: T173998
---
M LastModified.php
A extension.json
2 files changed, 54 insertions(+), 50 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LastModified 
refs/changes/03/373503/1

diff --git a/LastModified.php b/LastModified.php
index 8841e87..80aeddc 100644
--- a/LastModified.php
+++ b/LastModified.php
@@ -17,57 +17,17 @@
  * @author Katie Horn , Jeremy Postlethwaite 

  */
 
-# Alert the user that this is not a valid entry point to MediaWiki if they try 
to access the special pages file directly.
-if ( !defined( 'MEDIAWIKI' ) ) {
-   echo < __FILE__,
-   'name' => 'LastModified',
-   'version' => '1.1.0',
-   'url' => 'https://www.mediawiki.org/wiki/Extension:LastModified',
-   'author' => array( 'Katie Horn', 'Jeremy Postlethwaite' ),
-   'descriptionmsg' => 'lastmodified-desc',
-);
-
-$dir = dirname( __FILE__ ) . '/';
-
-$wgMessagesDirs['LastModified'] = __DIR__ . '/i18n';
-$wgExtensionMessagesFiles['LastModified'] = $dir . 'LastModified.i18n.php';
-
-/**
- * ADDITIONAL MAGICAL GLOBALS
- */
-
-// Resource modules
-$wgResourceTemplate = array(
-   'localBasePath' => $dir . 'modules',
-   'remoteExtPath' => 'LastModified/modules',
-);
-
-$wgResourceModules['last.modified'] = array(
-   'scripts' => 'lastmodified.js',
-   'position' => 'top',
-   'dependencies' => array( 'mediawiki.jqueryMsg' ),
-   'messages' => array(
-   'lastmodified-seconds',
-   'lastmodified-hours',
-   'lastmodified-minutes',
-   'lastmodified-hours',
-   'lastmodified-days',
-   'lastmodified-months',
-   'lastmodified-years',
-   'lastmodified-title-tag',
-   ),
-) + $wgResourceTemplate;
-
-$wgHooks['BeforePageDisplay'][] = 'fnLastModified';
 
 /**
  * This variable controls the display range.
diff --git a/extension.json b/extension.json
new file mode 100644
index 000..8f0275c
--- /dev/null
+++ b/extension.json
@@ -0,0 +1,44 @@
+"name": "LastModified",
+   "version": "1.1.0",
+   "author": [
+   "Katie Horn",
+   "[https://www.mediawiki.org/wiki/User:Jpostlethwaite Jeremy 
Postlethwaite]",
+   ],
+   "url": "https://www.mediawiki.org/wiki/Extension:LastModified;,
+   "descriptionmsg": "lastmodified-desc",
+   "license-name": "GPL-2.0+",
+   "MessagesDirs": {
+   "LastModified": [
+   "i18n"
+   ]
+   },
+   "config": {
+   "LastModifiedRange": {
+   "value": "0",
+   "description": "Change the display range (or timelimit) 
used by the extension"
+   },
+   },
+   "Hooks": {
+   "fnLastModified": "LastModifiedHooks::BeforePageDisplay",
+   "userCan": "AccessControlHooks::onUserCan",
+   "UnknownAction": "AccessControlHooks::onUnknownAction"
+   },
+   "ResourceModules": {
+   "scripts": [
+   "lastmodified.js",
+   ],
+   "position": "top",
+   "dependencies": [
+   "mediawiki.jqueryMsg"
+   ],
+   "messages": [
+   "lastmodified-seconds",
+   "lastmodified-minutes",
+   "lastmodified-hours",
+   "lastmodified-days",
+   "lastmodified-months",
+   "lastmodified-years",
+   "lastmodified-title-tag",
+   ],
+   }
+   "manifest_version": 2
\ No newline at end of file

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8832c46522fe79035495e08bf498793e17252cb8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LastModified
Gerrit-Branch: master
Gerrit-Owner: Reception123 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org

[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_29]: registration: Only allow one extension to set a specific con...

2017-08-22 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/373134 )

Change subject: registration: Only allow one extension to set a specific config 
setting
..

registration: Only allow one extension to set a specific config setting

ExtensionProcessor would previously just blindly overwrite duplicate
config settings, which ends up depending upon load order.

It's relatively hard to debug since it is silently overwritten. This now
throws exceptions in case of duplicate config settings.

This will also have some side-effects of catching people putting things
like "ResourceModules" in their "config" section when it should be a
top-level item.

Bug: T152929
Change-Id: Iaef32efab397e82ff70ddca8ac79c545c5b7d2bb

Causing errors with the WikiForum extension and ConfirmEdit when using 1.29. 
Please backport

Change-Id: I0f437f2b26be0e24c660b10c325806eea1476461
---
M includes/registration/ExtensionProcessor.php
M tests/phpunit/includes/registration/ExtensionProcessorTest.php
2 files changed, 59 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/34/373134/1

diff --git a/includes/registration/ExtensionProcessor.php 
b/includes/registration/ExtensionProcessor.php
index d14be3f..312e680 100644
--- a/includes/registration/ExtensionProcessor.php
+++ b/includes/registration/ExtensionProcessor.php
@@ -443,7 +443,7 @@
}
foreach ( $info['config'] as $key => $val ) {
if ( $key[0] !== '@' ) {
-   $this->globals["$prefix$key"] = $val;
+   $this->addConfigGlobal( "$prefix$key", 
$val );
}
}
}
@@ -471,11 +471,26 @@
if ( isset( $data['path'] ) && $data['path'] ) {
$value = "$dir/$value";
}
-   $this->globals["$prefix$key"] = $value;
+   $this->addConfigGlobal( "$prefix$key", $value );
}
}
}
 
+   /**
+* Helper function to set a value to a specific global, if it isn't set 
already.
+*
+* @param string $key The config key with the prefix and anything
+* @param mixed $value The value of the config
+*/
+   private function addConfigGlobal( $key, $value ) {
+   if ( array_key_exists( $key, $this->globals ) ) {
+   throw new RuntimeException(
+   "The configuration setting '$key' was already 
set by another extension,"
+   . " and cannot be set again." );
+   }
+   $this->globals[$key] = $value;
+   }
+
protected function extractServiceWiringFiles( $dir, array $info ) {
if ( isset( $info['ServiceWiringFiles'] ) ) {
foreach ( $info['ServiceWiringFiles'] as $path ) {
diff --git a/tests/phpunit/includes/registration/ExtensionProcessorTest.php 
b/tests/phpunit/includes/registration/ExtensionProcessorTest.php
index ebe0bde..503f698 100644
--- a/tests/phpunit/includes/registration/ExtensionProcessorTest.php
+++ b/tests/phpunit/includes/registration/ExtensionProcessorTest.php
@@ -168,6 +168,48 @@
$this->assertEquals( 'somevalue', 
$extracted['globals']['egBar'] );
}
 
+   /**
+* @covers ExtensionProcessor::addConfigGlobal()
+* @expectedException RuntimeException
+*/
+   public function testDuplicateConfigKey1() {
+   $processor = new ExtensionProcessor;
+   $info = [
+   'config' => [
+   'Bar' => '',
+   ]
+   ] + self::$default;
+   $info2 = [
+   'config' => [
+   'Bar' => 'g',
+   ],
+   'name' => 'FooBar2',
+   ];
+   $processor->extractInfo( $this->dir, $info, 1 );
+   $processor->extractInfo( $this->dir, $info2, 1 );
+   }
+
+   /**
+* @covers ExtensionProcessor::addConfigGlobal()
+* @expectedException RuntimeException
+*/
+   public function testDuplicateConfigKey2() {
+   $processor = new ExtensionProcessor;
+   $info = [
+   'config' => [
+   'Bar' => [ 'value' => 'somevalue' ],
+   ]
+   ] + self::$default;
+   $info2 = [
+   'config' => [
+   'Bar' => [ 'value' => 'somevalue' ],
+   ],
+   'name' => 'FooBar2',
+   

[MediaWiki-commits] [Gerrit] mediawiki...SimpleChanges[REL1_29]: Fix for bug in $wgSimpleChangesOnlyLatest handling with Medi...

2017-08-21 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372813 )

Change subject: Fix for bug in $wgSimpleChangesOnlyLatest handling with 
MediaWiki 1.29
..

Fix for bug in $wgSimpleChangesOnlyLatest handling with MediaWiki 1.29

* See bug report here: https://www.mediawiki.org/wiki/Topic:Tv1tm9gz02bn1we9
* Fix is simply inserting our code later in the query building

Change-Id: I601531325359189a6b96b76bc9376bc4af49abf5
(cherry picked from commit 1528e85dc708577fa79334f1a9cf592612097ee7)

Causing issues on 1.29, should be therefore backported.

Change-Id: Idf7744131c0ab2b954fd29b291f14d67e4cabaf5
---
M SpecialSimpleChanges.php
1 file changed, 5 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SimpleChanges 
refs/changes/13/372813/1

diff --git a/SpecialSimpleChanges.php b/SpecialSimpleChanges.php
index 0c41802..3ba26bb 100644
--- a/SpecialSimpleChanges.php
+++ b/SpecialSimpleChanges.php
@@ -14,12 +14,11 @@
 *
 * @inheritdoc
 */
-   protected function buildQuery( &$tables, &$fields, &$conds,
-   &$query_options, &$join_conds, FormOptions $opts ) {
+   protected function runMainQueryHook( &$tables, &$fields, &$conds, 
&$query_options, &$join_conds,
+   $opts
+   ) {
 
global $wgContentNamespaces, 
$wgSimpleChangesOnlyContentNamespaces, $wgSimpleChangesOnlyLatest;
-
-   parent::buildQuery( $tables, $fields, $conds, $query_options, 
$join_conds, $opts );
 
# don't count log entries toward limit of number of changes 
displayed
$conds[] = 'rc_type != ' . RC_LOG;
@@ -45,6 +44,8 @@
$join_conds['page'] = array( 'LEFT JOIN', 
'rc_cur_id=page_id' );
}
}
+
+   return parent::runMainQueryHook( $tables, $fields, $conds, 
$query_options, $join_conds, $opts );
}
 
/**

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idf7744131c0ab2b954fd29b291f14d67e4cabaf5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SimpleChanges
Gerrit-Branch: REL1_29
Gerrit-Owner: Reception123 
Gerrit-Reviewer: tosfos 

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


[MediaWiki-commits] [Gerrit] labs...ZppixBot[master]: New release (v2) of ZppixBot

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

Change subject: New release (v2) of ZppixBot
..

New release (v2) of ZppixBot

Change-Id: I4af24807ce0d09ea1114954f89dcb0f4b8df2deb
---
M public_html/index.php
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/tools/ZppixBot 
refs/changes/79/370679/1

diff --git a/public_html/index.php b/public_html/index.php
index 2aa56ed..5285058 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -3,6 +3,8 @@
 
 If you need ZppixBot in your channel, please contact Zppix. 
 
- Inital release of ZppixBot is here! 
- For more information please check out https://github.com/Pix1234/ZppixBot-Source/releases/tag/v1;>the release 
tag !!!
+ The second release of ZppixBot is now here! 
+ For more information please check out https://github.com/Pix1234/ZppixBot-Source/releases/tag/v2;>the release 
tag !!!
 
+Previous releases:
+https://github.com/Pix1234/ZppixBot-Source/releases/tag/v1;>v1 (30 
July 2017)

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4af24807ce0d09ea1114954f89dcb0f4b8df2deb
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/ZppixBot
Gerrit-Branch: master
Gerrit-Owner: Reception123 

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


[MediaWiki-commits] [Gerrit] labs...ZppixBot[master]: Add links for release tag and my talkpage.

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

Change subject: Add links for release tag and my talkpage.
..

Add links for release tag and my talkpage.

Change-Id: I5990650f4195e0cfe5473257ace40c03f7af1f9f
---
M public_html/contribs.php
M public_html/index.php
2 files changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/tools/ZppixBot 
refs/changes/75/370675/1

diff --git a/public_html/contribs.php b/public_html/contribs.php
index 068757a..a0e11ea 100644
--- a/public_html/contribs.php
+++ b/public_html/contribs.php
@@ -2,4 +2,4 @@
 Zppix- Operator
 tom29739- Release version bot operator, developer
 SwisterTwister- Zppixbot web design, and friend.
-Reception123 - Helps with new features
+https://meta.miraheze.org/wiki/User:Reception123;>Reception123 - Helps 
with new features
diff --git a/public_html/index.php b/public_html/index.php
index fc37f65..7f9f595 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -3,6 +3,6 @@
 
 
  Inital release of ZppixBot is here! 
- For more information please check out, 
https://github.com/Pix1234/ZppixBot-Source/releases/tag/v1 !!!
+ For more information please check out https://github.com/Pix1234/ZppixBot-Source/releases/tag/v1;>the release 
tag !!!
 
 If you need ZppixBot in your channel, please contact Zppix.

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5990650f4195e0cfe5473257ace40c03f7af1f9f
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/ZppixBot
Gerrit-Branch: master
Gerrit-Owner: Reception123 

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


[MediaWiki-commits] [Gerrit] labs...ZppixBot[master]: Added breaks as now everything displayed on one line

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

Change subject: Added breaks as now everything displayed on one line
..

Added breaks as now everything displayed on one line

Change-Id: Id6e87c3971603e06acb6be86243f12c263e91ab1
---
M public_html/contribs.php
1 file changed, 5 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/tools/ZppixBot 
refs/changes/69/370669/1

diff --git a/public_html/contribs.php b/public_html/contribs.php
index e3c0fcf..068757a 100644
--- a/public_html/contribs.php
+++ b/public_html/contribs.php
@@ -1,5 +1,5 @@
-People whom have contributed to Zppixbot
-Zppix- Operator
-tom29739- Release version bot operator, developer
-SwisterTwister- Zppixbot web design, and friend.
-Reception123 - Helps with new features
+People whom have contributed to Zppixbot
+Zppix- Operator
+tom29739- Release version bot operator, developer
+SwisterTwister- Zppixbot web design, and friend.
+Reception123 - Helps with new features

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id6e87c3971603e06acb6be86243f12c263e91ab1
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/ZppixBot
Gerrit-Branch: master
Gerrit-Owner: Reception123 

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


[MediaWiki-commits] [Gerrit] labs...ZppixBot[master]: Add so that people know who to ask if they need ZppixBot in ...

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

Change subject: Add so that people know who to ask if they need ZppixBot in 
their channel
..

Add so that people know who to ask if they need ZppixBot in their
channel

Change-Id: I56390c06fc42a07b919ae848a80bf2d5b81f3d31
---
M public_html/index.php
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/tools/ZppixBot 
refs/changes/10/370610/1

diff --git a/public_html/index.php b/public_html/index.php
index a8ac953..fc37f65 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -3,4 +3,6 @@
 
 
  Inital release of ZppixBot is here! 
- For more information please check out, 
https://github.com/Pix1234/ZppixBot-Source/releases/tag/v1 !!!
\ No newline at end of file
+ For more information please check out, 
https://github.com/Pix1234/ZppixBot-Source/releases/tag/v1 !!!
+
+If you need ZppixBot in your channel, please contact Zppix.

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I56390c06fc42a07b919ae848a80bf2d5b81f3d31
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/ZppixBot
Gerrit-Branch: master
Gerrit-Owner: Reception123 

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


[MediaWiki-commits] [Gerrit] labs...ZppixBot[master]: Add myself to contributers for ZppixBot

2017-08-07 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/370523 )

Change subject: Add myself to contributers for ZppixBot
..

Add myself to contributers for ZppixBot

Change-Id: Ib95ca903bfb0dab1ed63b161ea69aefdc3273887
---
M public_html/contribs.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/tools/ZppixBot 
refs/changes/23/370523/1

diff --git a/public_html/contribs.php b/public_html/contribs.php
index 621f805..e3c0fcf 100644
--- a/public_html/contribs.php
+++ b/public_html/contribs.php
@@ -2,3 +2,4 @@
 Zppix- Operator
 tom29739- Release version bot operator, developer
 SwisterTwister- Zppixbot web design, and friend.
+Reception123 - Helps with new features

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib95ca903bfb0dab1ed63b161ea69aefdc3273887
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/ZppixBot
Gerrit-Branch: master
Gerrit-Owner: Reception123 

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


[MediaWiki-commits] [Gerrit] mediawiki...CentralAuth[master]: I'm not sure if the translations were left like that on purp...

2017-07-28 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/368538 )

Change subject: I'm not sure if the translations were left like that on purpose 
but I think that it makes more sense to include "a" in front of a few words.
..

I'm not sure if the translations were left like that on purpose but I
think that it makes more sense to include "a" in front of a few words.

"Merge their account" - This one I think is especially confusing since
the command is not limited for someone to merge "their own" account, it
can be used for merging other accounts to, so I think that "an" account
works better.

Change-Id: I9278fb7113400e19fbab7c378eced81ed9e299aa
---
M i18n/en.json
1 file changed, 5 insertions(+), 5 deletions(-)


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

diff --git a/i18n/en.json b/i18n/en.json
index a4717e6..eddf5c4 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -339,11 +339,11 @@
"centralauth-block-already-locked": "The account 
[[Special:CentralAuth/$1|$1]] is already locked globally.",
"centralauth-readonly": "CentralAuth database locked",
"centralauth-readonlytext": "The CentralAuth database is currently 
locked to new entries and other modifications, probably for routine database 
maintenance, after which it will be back to normal.",
-   "right-globalgroupmembership": "Edit membership to global groups",
-   "right-centralauth-unmerge": "Unmerge global account",
-   "right-centralauth-lock": "Lock or unlock global account",
-   "right-centralauth-oversight": "Suppress or hide global account",
-   "right-centralauth-merge": "Merge their account",
+   "right-globalgroupmembership": "Edit membership to a global groups",
+   "right-centralauth-unmerge": "Unmerge a global account",
+   "right-centralauth-lock": "Lock or unlock a global account",
+   "right-centralauth-oversight": "Suppress or hide a global account",
+   "right-centralauth-merge": "Merge an account",
"right-globalgrouppermissions": "Manage global groups",
"abusefilter-edit-builder-vars-global-user-groups": "Global groups that 
the user is in",
"action-centralauth-unmerge": "unmerge global accounts",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9278fb7113400e19fbab7c378eced81ed9e299aa
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Reception123 

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


[MediaWiki-commits] [Gerrit] operations/mediawiki-config[master]: Add new mobile watermark for Urdu Wikipedia.

2017-07-28 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/368444 )

Change subject: Add new mobile watermark for Urdu Wikipedia.
..

Add new mobile watermark for Urdu Wikipedia.

Bug: T171769
Change-Id: I79f578843798c64cc190de1e4906f1cd648935d8
---
A static/images/mobile/copyright/wikipedia-wordmark-ur.svg
M wmf-config/InitialiseSettings.php
2 files changed, 15 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/44/368444/1

diff --git a/static/images/mobile/copyright/wikipedia-wordmark-ur.svg 
b/static/images/mobile/copyright/wikipedia-wordmark-ur.svg
new file mode 100644
index 000..a4b3eb5
--- /dev/null
+++ b/static/images/mobile/copyright/wikipedia-wordmark-ur.svg
@@ -0,0 +1,10 @@
+
+http://www.w3.org/2000/svg; 
xmlns:xlink="http://www.w3.org/1999/xlink;>
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index f1220e2..fff58d9 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -15438,6 +15438,11 @@
'copyright-width' => 122,
'copyright-height' => 22,
],
+   'urwiki' => [
+   'copyright' => 
'/static/images/mobile/copyright/wikipedia-wordmark-ur.svg',
+   'copyright-width' => 66,
+   'copyright-height' => 26,
+   ],
'wikivoyage' => [
'copyright' => 
'/static/images/mobile/copyright/wikivoyage-wordmark-en.svg',
'copyright-width' => 96,

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I79f578843798c64cc190de1e4906f1cd648935d8
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Reception123 

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


[MediaWiki-commits] [Gerrit] operations/mediawiki-config[master]: Added wordmark for Wikipedia Atikamekw

2017-07-27 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/368198 )

Change subject: Added wordmark for Wikipedia Atikamekw
..

Added wordmark for Wikipedia Atikamekw

Change-Id: Ic449c7ce0dd5d4ce89a92c784b5ba3721932c54b
Source: https://commons.wikimedia.org/wiki/File:Wikipedia_wordmark_atj.svg
---
A static/images/mobile/copyright/wikipedia-wordmark-atj.svg
M wmf-config/InitialiseSettings.php
2 files changed, 117 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/98/368198/1

diff --git a/static/images/mobile/copyright/wikipedia-wordmark-atj.svg 
b/static/images/mobile/copyright/wikipedia-wordmark-atj.svg
new file mode 100644
index 000..4419d1c
--- /dev/null
+++ b/static/images/mobile/copyright/wikipedia-wordmark-atj.svg
@@ -0,0 +1,112 @@
+
+
+http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;>
+http://purl.org/dc/elements/1.1/; 
xmlns:cc="http://creativecommons.org/ns#; 
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#; 
xmlns:svg="http://www.w3.org/2000/svg; 
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd; 
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape; 
inkscape:version="0.47 r22583" sodipodi:docname="Wikipedia-logo.svg"
+xmlns="http://www.w3.org/2000/svg; 
xmlns:xlink="http://www.w3.org/1999/xlink; x="0px" y="0px" width="1334.167px"
+height="188px" viewBox="20.376 25.563 1334.167 188" 
enable-background="new 20.376 25.563 1334.167 188" xml:space="preserve">
+
+   
+   
+   
+   
+   
+   
+   
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+
+
diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index 197d62e..e64923a 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -15375,6 +15375,11 @@
'copyright-width' => 79,
'copyright-height' => 22,
],
+   'atjwiki' => [
+   'copyright' => 
'/static/images/mobile/copyright/wikipedia-wordmark-atj.svg',
+   'copyright-width' => 79,
+   'copyright-height' => 22,
+   ],
'bnwiki' => [
'copyright' => 
'/static/images/mobile/copyright/wikipedia-wordmark-bn.svg',
'copyright-width' => 92,

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic449c7ce0dd5d4ce89a92c784b5ba3721932c54b
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Reception123 

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


[MediaWiki-commits] [Gerrit] operations/mediawiki-config[master]: Added wordmark for Wikipedia Atikamekw

2017-07-27 Thread Reception123 (Code Review)
Reception123 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/368194 )

Change subject: Added wordmark for Wikipedia Atikamekw
..

Added wordmark for Wikipedia Atikamekw

Change-Id: I87def16da10fe66d390e6eeb39e067808a853198
Source: https://commons.wikimedia.org/wiki/File:Wikipedia_wordmark_atj.svg
---
A static/images/mobile/copyright/wikipedia-wordmark-atj-notext.svg
M wmf-config/InitialiseSettings.php
2 files changed, 117 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/94/368194/1

diff --git a/static/images/mobile/copyright/wikipedia-wordmark-atj-notext.svg 
b/static/images/mobile/copyright/wikipedia-wordmark-atj-notext.svg
new file mode 100644
index 000..4419d1c
--- /dev/null
+++ b/static/images/mobile/copyright/wikipedia-wordmark-atj-notext.svg
@@ -0,0 +1,112 @@
+
+
+http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;>
+http://purl.org/dc/elements/1.1/; 
xmlns:cc="http://creativecommons.org/ns#; 
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#; 
xmlns:svg="http://www.w3.org/2000/svg; 
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd; 
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape; 
inkscape:version="0.47 r22583" sodipodi:docname="Wikipedia-logo.svg"
+xmlns="http://www.w3.org/2000/svg; 
xmlns:xlink="http://www.w3.org/1999/xlink; x="0px" y="0px" width="1334.167px"
+height="188px" viewBox="20.376 25.563 1334.167 188" 
enable-background="new 20.376 25.563 1334.167 188" xml:space="preserve">
+
+   
+   
+   
+   
+   
+   
+   
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+
+
diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index 197d62e..f63c3d7 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -15370,6 +15370,11 @@
'copyright-width' => 116,
'copyright-height' => 18,
],
+   'atjwiki' => [
+   'copyright' => 
'/static/images/mobile/copyright/wikipedia-wordmark-atj-notext.svg',
+   'copyright-width' => 79,
+   'copyright-height' => 22,
+   ],
'arwiki' => [
'copyright' => 
'/static/images/mobile/copyright/wikipedia-wordmark-ar.svg',
'copyright-width' => 79,

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I87def16da10fe66d390e6eeb39e067808a853198
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Reception123 

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


[MediaWiki-commits] [Gerrit] mediawiki/core[REL1_29]: Fix Postgres support

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

Change subject: Fix Postgres support
..

Fix Postgres support

See https://phabricator.wikimedia.org/T149454#3217259

This restores a line mistakenly deleted in
eef8fc45f3d03596579abb2519185ace38cf6832.

Bug: T149454
Change-Id: If6463904bb5269a7ccab5ddd69f69dba8104bc49
---
M includes/libs/rdbms/database/DatabasePostgres.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/40/358640/1

diff --git a/includes/libs/rdbms/database/DatabasePostgres.php 
b/includes/libs/rdbms/database/DatabasePostgres.php
index b92d072..23d9d3f 100644
--- a/includes/libs/rdbms/database/DatabasePostgres.php
+++ b/includes/libs/rdbms/database/DatabasePostgres.php
@@ -1051,6 +1051,7 @@
if ( $schema === false ) {
$schema = $this->getCoreSchema();
}
+   $table = $this->realTableName( $table, 'raw' );
$etable = $this->addQuotes( $table );
$eschema = $this->addQuotes( $schema );
$sql = "SELECT 1 FROM pg_catalog.pg_class c, 
pg_catalog.pg_namespace n "

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If6463904bb5269a7ccab5ddd69f69dba8104bc49
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: REL1_29
Gerrit-Owner: Reception123 
Gerrit-Reviewer: Mwjames 

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