[MediaWiki-commits] [Gerrit] mediawiki...NetworkAuth[master]: Using the extension registration (extension.json)
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/404169 ) Change subject: Using the extension registration (extension.json) .. Using the extension registration (extension.json) Change-Id: I53831f06577ba8024a93e3a77e9fd8fa7a73c3cc --- M NetworkAuth.php A NetworkAuthHooks.php A extension.json 3 files changed, 79 insertions(+), 54 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/NetworkAuth refs/changes/69/404169/1 diff --git a/NetworkAuth.php b/NetworkAuth.php index f51651d..c7cc86e 100644 --- a/NetworkAuth.php +++ b/NetworkAuth.php @@ -1,55 +1,14 @@ http://www.mediawiki.org/wiki/User:Olenz> -Copyright (C) 2007,2008,2009,2010,2011 Tim Laqua - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License along -with this program; if not, write to the Free Software Foundation, Inc., -51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -http://www.gnu.org/copyleft/gpl.html -*/ - -if ( !defined( 'MEDIAWIKI' ) ) { - die(); -} - -$wgExtensionCredits['other'][] = array( - 'path' => __FILE__, - 'name' => 'NetworkAuth', - 'version'=> '2.1.2', - 'author' => array( 'Tim Laqua', 'Olaf Lenz' ), - 'descriptionmsg' => 'networkauth-desc', - 'url'=> 'https://www.mediawiki.org/wiki/Extension:NetworkAuth', - 'license-name' => 'GPL-2.0+', -); - -$wgAutoloadClasses['NetworkAuth'] = __DIR__ . '/NetworkAuth.class.php'; -$wgMessagesDirs['NetworkAuth'] = __DIR__ . '/i18n'; -// defaults -if ( !isset( $wgNetworkAuthUsers ) ) - $wgNetworkAuthUsers = array(); -if ( !isset( $wgNetworkAuthSpecialUsers ) ) - $wgNetworkAuthSpecialUsers = array(); - -$wgExtensionFunctions[] = function() { - global $wgHooks, $wgNetworkAuth, $wgNetworkAuthUsers, $wgNetworkAuthSpecialUsers; - - $wgNetworkAuth = new NetworkAuth( $wgNetworkAuthUsers, $wgNetworkAuthSpecialUsers ); - - $wgHooks['UserLoadAfterLoadFromSession'][] = - array( $wgNetworkAuth, 'onUserLoadAfterLoadFromSession' ); - $wgHooks['PersonalUrls'][] = - array( $wgNetworkAuth, 'onPersonalUrls' ); - - return true; -}; +if ( function_exists( 'wfLoadExtension' ) ) { + wfLoadExtension( 'NetworkAuth' ); + // Keep i18n globals so mergeMessageFileList.php doesn't break + $wgMessagesDirs['NetworkAuth'] = __DIR__ . '/i18n'; + wfWarn( + 'Deprecated PHP entry point used for the NetworkAuth extension. ' . + 'Please use wfLoadExtension instead, ' . + 'see https://www.mediawiki.org/wiki/Extension_registration for more details.' + ); + return; +} else { + die( 'This version of the NetworkAuth extension requires MediaWiki 1.25+' ); +} \ No newline at end of file diff --git a/NetworkAuthHooks.php b/NetworkAuthHooks.php new file mode 100644 index 000..14e8d39 --- /dev/null +++ b/NetworkAuthHooks.php @@ -0,0 +1,32 @@ +onUserLoadAfterLoadFromSession( $user ); + } + + public static function onPersonalUrls( &$personal_urls, &$title ) { + self::getNetworkAuth()->onPersonalUrls( $personal_urls, $title ); + } + + /** +* Creates, if necessary, a instance of the NetworkAuth and returns it. +* +* @return NetworkAuth +*/ + private static function getNetworkAuth() { + global $wgNetworkAuthUsers, $wgNetworkAuthSpecialUsers; + + if ( isset( $wgNetworkAuth ) ) return NetworkAuthHooks::$wgNetworkAuth; + + NetworkAuthHooks::$wgNetworkAuth = new NetworkAuth( $wgNetworkAuthUsers, $wgNetworkAuthSpecialUsers ); + return NetworkAuthHooks::$wgNetworkAuth; + } + +} \ No newline at end of file diff --git a/extension.json b/extension.json new file mode 100644 index 000..71b04ab --- /dev/null +++ b/extension.json @@ -0,0 +1,34 @@ +{ + "name": "NetworkAuth", + "version": "2.1.2", + "author": [ + "Tim Laqua", + "Olaf Lenz" + ], + "url": "https://www.mediawiki.org/wiki/Extension:NetworkAuth;, + "descriptionmsg": "networkauth-desc", + "license-name": "GPL-2.0-or-later", + "type": "other", + "MessagesDirs": { + "NetworkAuth": [ + "i18n" + ] + }, + "AutoloadClasses": { +
[MediaWiki-commits] [Gerrit] mediawiki...EtherpadLite[master]: Added the COPYING file containing the licenses
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/404165 ) Change subject: Added the COPYING file containing the licenses .. Added the COPYING file containing the licenses Change-Id: I27185d290862759b0322c33e789012578382cfe0 --- A COPYING 1 file changed, 366 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/EtherpadLite refs/changes/65/404165/1 diff --git a/COPYING b/COPYING new file mode 100644 index 000..8eeda24 --- /dev/null +++ b/COPYING @@ -0,0 +1,366 @@ +EtherpadLite is dual licensed under the GNU General Public License, version 2 +only and the MIT license. Both texts of these licenses are included below. + +-- + +GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + +GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim
[MediaWiki-commits] [Gerrit] mediawiki...EtherpadLite[master]: Using the extension registration
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/403914 ) Change subject: Using the extension registration .. Using the extension registration Bug: T184773 Change-Id: I2584f9fc81a570451295b1266dd796e9a358b3e2 --- A COPYING M EtherpadLite.php A README.md A extension.json 4 files changed, 509 insertions(+), 108 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/EtherpadLite refs/changes/14/403914/1 diff --git a/COPYING b/COPYING new file mode 100644 index 000..8eeda24 --- /dev/null +++ b/COPYING @@ -0,0 +1,366 @@ +EtherpadLite is dual licensed under the GNU General Public License, version 2 +only and the MIT license. Both texts of these licenses are included below. + +-- + +GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + +GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1.
[MediaWiki-commits] [Gerrit] mediawiki...DisqusTag[master]: Using the extension registration
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/403313 ) Change subject: Using the extension registration .. Using the extension registration Bug: T184570 Change-Id: I9e11803326292da407629f0c8167f59240cad4da --- M DisqusTag.php A extension.json 2 files changed, 49 insertions(+), 24 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DisqusTag refs/changes/13/403313/1 diff --git a/DisqusTag.php b/DisqusTag.php index 7c30880..ecfc41f 100644 --- a/DisqusTag.php +++ b/DisqusTag.php @@ -1,26 +1,15 @@ __FILE__, - 'name' => 'DisqusTag', - 'descriptionmsg' => 'disqustag-desc', - 'version' => '0.3.0', - 'author' => 'Luis Felipe Schenone', - 'url' => 'https://www.mediawiki.org/wiki/Extension:DisqusTag', -); - -$wgResourceModules['ext.DisqusTag'] = array( - 'scripts' => 'DisqusTag.js', - 'styles' => 'DisqusTag.css', - 'position' => 'bottom', - 'dependencies' => array( 'jquery.ui.dialog' ), - 'localBasePath' => __DIR__, - 'remoteExtPath' => 'DisqusTag', -); - -$wgMessagesDirs['DisqusTag'] = __DIR__ . '/i18n'; -$wgAutoloadClasses['DisqusTag'] = __DIR__ . '/DisqusTag.body.php'; - -$wgHooks['BeforePageDisplay'][] = 'DisqusTag::addModule'; -$wgHooks['ParserFirstCallInit'][] = 'DisqusTag::setParserHook'; -$wgHooks['SkinAfterContent'][] = 'DisqusTag::addDisqusElements'; +if ( function_exists( 'DisqusTag' ) ) { + wfLoadExtension( 'DisqusTag' ); + // Keep i18n globals so mergeMessageFileList.php doesn't break + $wgMessagesDirs['DisqusTag'] = __DIR__ . '/i18n'; + wfWarn( + 'Deprecated PHP entry point used for the DisqusTag extension. ' . + 'Please use wfLoadExtension instead, ' . + 'see https://www.mediawiki.org/wiki/Extension_registration for more details.' + ); + return; +} else { + die( 'This version of the DisqusTag extension requires MediaWiki 1.25+' ); +} \ No newline at end of file diff --git a/extension.json b/extension.json new file mode 100644 index 000..7677307 --- /dev/null +++ b/extension.json @@ -0,0 +1,36 @@ +{ + "name": "DisqusTag", + "version": "0.3.0", + "author": "Luis Felipe Schenone", + "url": "https://www.mediawiki.org/wiki/Extension:DisqusTag;, + "descriptionmsg": "disqustag-desc", + "type": "parserhook", + "MessagesDirs": { + "DisqusTag": [ + "i18n" + ] + }, + "AutoloadClasses": { + "DisqusTag": "DisqusTag.body.php" + }, + "ResourceModules": { + "ext.DisqusTag": { + "scripts": "DisqusTag.js", + "styles": "DisqusTag.css", + "position": "bottom", + "dependencies": [ + "jquery.ui.dialog" + ] + } + }, + "ResourceFileModulePaths": { + "localBasePath": "", + "remoteExtPath": "DisqusTag" + }, + "Hooks": { + "BeforePageDisplay": "DisqusTag::addModule", + "ParserFirstCallInit": "DisqusTag::setParserHook", + "SkinAfterContent": "DisqusTag::addDisqusElements" + }, + "manifest_version": 2 +} -- To view, visit https://gerrit.wikimedia.org/r/403313 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9e11803326292da407629f0c8167f59240cad4da Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/DisqusTag Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...CongressLookup[master]: Using the extension registration (extension.json)
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/402596 ) Change subject: Using the extension registration (extension.json) .. Using the extension registration (extension.json) Bug: T184346 Change-Id: I70bdd3e21520e1f900fa29d4ea70dee2186916eb --- M CongressLookup.php A CongressLookupHooks.php A extension.json 3 files changed, 92 insertions(+), 21 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CongressLookup refs/changes/96/402596/1 diff --git a/CongressLookup.php b/CongressLookup.php index 54c6cf8..8c54ab0 100644 --- a/CongressLookup.php +++ b/CongressLookup.php @@ -22,6 +22,20 @@ * @author Ryan Kaldari */ +# Warn users if they using the old entry point and a MediaWiki with the new extension registration +if ( function_exists( 'wfLoadExtension' ) ) { +wfLoadExtension( 'CongressLookup' ); +// Keep i18n globals so mergeMessageFileList.php doesn't break +$wgMessagesDirs['FooBar'] = __DIR__ . '/i18n'; +$wgExtensionMessagesFiles['FooBarAlias'] = __DIR__ . '/FooBar.alias.php'; +wfWarn( +'Deprecated PHP entry point used for the FooBar extension. ' . +'Please use wfLoadExtension instead, ' . +'see https://www.mediawiki.org/wiki/Extension_registration for more details.' +); +return; +} + # 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 <addExtensionUpdate( array( 'addTable', 'cl_errors', - dirname( __FILE__ ) . '/patches/CongressDataErrors.sql', true ) ); - } - return true; -} +$wgHooks['LoadExtensionSchemaUpdates'][] = 'CongressLookupHooks::schemaUpdate'; diff --git a/CongressLookupHooks.php b/CongressLookupHooks.php new file mode 100644 index 000..9d8614f --- /dev/null +++ b/CongressLookupHooks.php @@ -0,0 +1,26 @@ +addExtensionUpdate( array( 'addTable', 'cl_senate', +dirname( __FILE__ ) . '/patches/CongressLookup.sql', true ) ); +$updater->addExtensionUpdate( array( 'addTable', 'cl_errors', +dirname( __FILE__ ) . '/patches/CongressDataErrors.sql', true ) ); +} +return true; +} + +} \ No newline at end of file diff --git a/extension.json b/extension.json new file mode 100644 index 000..a7b483a --- /dev/null +++ b/extension.json @@ -0,0 +1,50 @@ +{ + "name": "CongressLookup", + "version": "1.1.0", + "author": [ + "Ryan Kaldari" + ], + "url": "https://www.mediawiki.org/wiki/Extension:CongressLookup;, + "descriptionmsg": "congresslookup-desc", + "type": "specialpage", + "APIModules": { + "congresslookup": "ApiCongressLookup" + }, + "SpecialPages": { + "CongressLookup": "SpecialCongressLookup", + "CongressFail": "SpecialCongressFail" + }, + "MessagesDirs": { + "CongressLookup": [ + "i18n" + ] + }, + "ExtensionMessagesFiles": { + "CongressLookupAlias": "CongressLookup.alias.php" + }, + "AutoloadClasses": { + "ApiCongressLookup": "ApiCongressLookup.php", + "CongressLookupHooks": "CongressLookupHooks.php", + "SpecialCongressLookup": "SpecialCongressLookup.php", + "SpecialCongressFail": "SpecialCongressFail.php", + "CongressLookupDB": "CongressLookup.db.php" + }, + "Hooks": { + "LoadExtensionSchemaUpdates": "CongressLookupHooks::schemaUpdate" + }, + "config": { + "CongressLookupSharedMaxAge": { + "value": 1200 + }, + "CongressLookupMaxAge": { + "value": 600 + }, + "CongressLookupErrorPage": { + "value": "CongressFail" + }, + "CongressLookupBlackOnWhite": { + "value": false + } + }, + "manifest_version": 2 +} -- To view, visit https://gerrit.wikimedia.org/r/402596 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I70bdd3e21520e1f900fa29d4ea70dee2186916eb Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CongressLookup Gerrit-Branch: master Gerrit-Owner: LukBukkit ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Wikibase[master]: Replaced ->rawParams( htmlspecialchars() ) with ->plaintextP...
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/401616 ) Change subject: Replaced ->rawParams( htmlspecialchars() ) with ->plaintextParams .. Replaced ->rawParams( htmlspecialchars() ) with ->plaintextParams Bug: T182213 Change-Id: I8af70b334c6f8771aa436ff55d1b500ebb3da043 --- M repo/includes/Actions/ViewEntityAction.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/16/401616/1 diff --git a/repo/includes/Actions/ViewEntityAction.php b/repo/includes/Actions/ViewEntityAction.php index 6bb538f..a168a31 100644 --- a/repo/includes/Actions/ViewEntityAction.php +++ b/repo/includes/Actions/ViewEntityAction.php @@ -129,7 +129,7 @@ // or should set the attribute of the h1 to correct direction. // Still note that the direction is "auto" so guessing should // give the right direction in most cases. - )->rawParams( htmlspecialchars( $titleText ) ) + )->plaintextParams( $titleText ) ); } -- To view, visit https://gerrit.wikimedia.org/r/401616 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8af70b334c6f8771aa436ff55d1b500ebb3da043 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Replaced ->text() with ->parse() because of ->rawParams()
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/401585 ) Change subject: Replaced ->text() with ->parse() because of ->rawParams() .. Replaced ->text() with ->parse() because of ->rawParams() Bug: T182213 Change-Id: I867f6e87fca246b40daf21c8d8b5428b37c7ac60 --- M includes/skins/Skin.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/85/401585/1 diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php index 07964a4..d89b6c6 100644 --- a/includes/skins/Skin.php +++ b/includes/skins/Skin.php @@ -835,7 +835,7 @@ [ $this->getTitle(), $type, &$msg, &$link, &$forContent ] ); - return $this->msg( $msg )->rawParams( $link )->text(); + return $this->msg( $msg )->rawParams( $link )->parse(); } /** -- To view, visit https://gerrit.wikimedia.org/r/401585 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I867f6e87fca246b40daf21c8d8b5428b37c7ac60 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...DeskMessMirrored[master]: Avoid PHP 7.1 warning of &$this usage
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/401097 ) Change subject: Avoid PHP 7.1 warning of &$this usage .. Avoid PHP 7.1 warning of &$this usage Bug: T153505 Change-Id: If3ae877790536fcd55b79bb98716ca20ded9d50e --- M includes/DeskMessMirroredTemplate.php 1 file changed, 3 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/DeskMessMirrored refs/changes/97/401097/1 diff --git a/includes/DeskMessMirroredTemplate.php b/includes/DeskMessMirroredTemplate.php index 6a8a181..a0fd137 100644 --- a/includes/DeskMessMirroredTemplate.php +++ b/includes/DeskMessMirroredTemplate.php @@ -254,8 +254,9 @@ foreach ( $this->getToolbox() as $key => $tbitem ) { echo $this->makeListItem( $key, $tbitem ); } - - Hooks::run( 'SkinTemplateToolboxEnd', array( &$this, true ) ); + // Avoid PHP 7.1 warning of passing $this by reference + $template = $this; + Hooks::run( 'SkinTemplateToolboxEnd', array( &$template, true ) ); echo ''; } // toolbox() -- To view, visit https://gerrit.wikimedia.org/r/401097 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If3ae877790536fcd55b79bb98716ca20ded9d50e Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/skins/DeskMessMirrored Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Truglass[master]: Avoid PHP 7.1 warning of &$this usage
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/401096 ) Change subject: Avoid PHP 7.1 warning of &$this usage .. Avoid PHP 7.1 warning of &$this usage Bug: T153505 Change-Id: Ic9834566e1346fbc91e44ed9fab8a694b2763a25 --- M includes/TruglassTemplate.php 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/Truglass refs/changes/96/401096/1 diff --git a/includes/TruglassTemplate.php b/includes/TruglassTemplate.php index 7c9b9a5..a9b534a 100644 --- a/includes/TruglassTemplate.php +++ b/includes/TruglassTemplate.php @@ -284,7 +284,9 @@ echo $this->makeListItem( $key, $tbitem ); } - Hooks::run( 'SkinTemplateToolboxEnd', array( &$this, true ) ); + // Avoid PHP 7.1 warning of passing $this by reference + $template = $this; + Hooks::run( 'SkinTemplateToolboxEnd', array( &$template, true ) ); ?> -- To view, visit https://gerrit.wikimedia.org/r/401096 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic9834566e1346fbc91e44ed9fab8a694b2763a25 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/skins/Truglass Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...apex[master]: Avoid PHP 7.1 warning of &$this usage
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/401095 ) Change subject: Avoid PHP 7.1 warning of &$this usage .. Avoid PHP 7.1 warning of &$this usage Bug: T153505 Change-Id: I2a410bdfb0dc063d2c27ee79cc4d67f2d4f603f8 --- M ApexTemplate.php 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/apex refs/changes/95/401095/1 diff --git a/ApexTemplate.php b/ApexTemplate.php index 46a0a19..14f8b32 100644 --- a/ApexTemplate.php +++ b/ApexTemplate.php @@ -224,7 +224,9 @@ -- To view, visit https://gerrit.wikimedia.org/r/401095 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2a410bdfb0dc063d2c27ee79cc4d67f2d4f603f8 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/skins/apex Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Bouquet[master]: Avoid PHP 7.1 warning of &$this usage
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/400719 ) Change subject: Avoid PHP 7.1 warning of &$this usage .. Avoid PHP 7.1 warning of &$this usage Bug: T153505 Change-Id: Ic21748bacc4c7281f0b85d0bd6accb285f2de087 --- M includes/BouquetTemplate.php 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/Bouquet refs/changes/19/400719/1 diff --git a/includes/BouquetTemplate.php b/includes/BouquetTemplate.php index e33bf5b..aa6b16b 100644 --- a/includes/BouquetTemplate.php +++ b/includes/BouquetTemplate.php @@ -317,7 +317,9 @@ echo $this->makeListItem( $key, $tbItem ); } - Hooks::run( 'SkinTemplateToolboxEnd', array( &$this, true ) ); + // Avoid PHP 7.1 warning of passing $this by reference + $template = $this; + Hooks::run( 'SkinTemplateToolboxEnd', array( &$template, true ) ); ?> -- To view, visit https://gerrit.wikimedia.org/r/400719 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic21748bacc4c7281f0b85d0bd6accb285f2de087 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/skins/Bouquet Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...DuskToDawn[master]: Avoid PHP 7.1 warning of &$this usage
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/400718 ) Change subject: Avoid PHP 7.1 warning of &$this usage .. Avoid PHP 7.1 warning of &$this usage Bug: T153505 Change-Id: I3db29dba16d8d2561ce71c97d6b451184b5b23bb --- M includes/DuskToDawnTemplate.php 1 file changed, 3 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/DuskToDawn refs/changes/18/400718/1 diff --git a/includes/DuskToDawnTemplate.php b/includes/DuskToDawnTemplate.php index 141a539..e8df08b 100644 --- a/includes/DuskToDawnTemplate.php +++ b/includes/DuskToDawnTemplate.php @@ -266,8 +266,9 @@ foreach ( $this->getToolbox() as $key => $tbItem ) { echo $this->makeListItem( $key, $tbItem ); } - - Hooks::run( 'SkinTemplateToolboxEnd', array( &$this, true ) ); + // Avoid PHP 7.1 warning of passing $this by reference + $template = $this; + Hooks::run( 'SkinTemplateToolboxEnd', array( &$template, true ) ); ?> -- To view, visit https://gerrit.wikimedia.org/r/400718 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3db29dba16d8d2561ce71c97d6b451184b5b23bb Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/skins/DuskToDawn Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...WPtouch[master]: Avoid PHP 7.1 warning of &$this usage
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/400717 ) Change subject: Avoid PHP 7.1 warning of &$this usage .. Avoid PHP 7.1 warning of &$this usage Change-Id: I7b55990cfe583bfc705f7a9d1ab89c3ddd6128c5 Bugs: T153505 --- M WPtouch.skin.php 1 file changed, 3 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/WPtouch refs/changes/17/400717/1 diff --git a/WPtouch.skin.php b/WPtouch.skin.php index 465948e..4060f91 100644 --- a/WPtouch.skin.php +++ b/WPtouch.skin.php @@ -156,8 +156,9 @@ foreach ( $this->getToolbox() as $key => $item ) { echo $this->makeListItem( $key, $item ); } - - Hooks::run( 'SkinTemplateToolboxEnd', array( &$this, true ) ); + // Avoid PHP 7.1 warning of passing $this by reference + $skin = $this; + Hooks::run( 'SkinTemplateToolboxEnd', array( &$skin, true ) ); ?> -- To view, visit https://gerrit.wikimedia.org/r/400717 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7b55990cfe583bfc705f7a9d1ab89c3ddd6128c5 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/skins/WPtouch Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Refreshed[master]: Avoid PHP 7.1 warning of &$this usage
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/400693 ) Change subject: Avoid PHP 7.1 warning of &$this usage .. Avoid PHP 7.1 warning of &$this usage Bug: T153505 Change-Id: I68593c9d06396fcc9e3a2e6d5792faf961eeb4b7 --- M includes/RefreshedTemplate.php 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/Refreshed refs/changes/93/400693/1 diff --git a/includes/RefreshedTemplate.php b/includes/RefreshedTemplate.php index 98dfcbb..602c3fe 100644 --- a/includes/RefreshedTemplate.php +++ b/includes/RefreshedTemplate.php @@ -533,7 +533,9 @@ -- To view, visit https://gerrit.wikimedia.org/r/400693 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I68593c9d06396fcc9e3a2e6d5792faf961eeb4b7 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/skins/Refreshed Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Gamepress[master]: Avoid PHP 7.1 warning of &$this usage
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/400563 ) Change subject: Avoid PHP 7.1 warning of &$this usage .. Avoid PHP 7.1 warning of &$this usage Bug: T153505 Change-Id: I6a7e72bac3c7cc368b5d911a0b6a82295570e09a --- M includes/GamepressTemplate.php 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/Gamepress refs/changes/63/400563/1 diff --git a/includes/GamepressTemplate.php b/includes/GamepressTemplate.php index c8bc04d..55d5ba4 100644 --- a/includes/GamepressTemplate.php +++ b/includes/GamepressTemplate.php @@ -328,7 +328,9 @@ echo $this->makeListItem( $key, $tbItem ); } - Hooks::run( 'SkinTemplateToolboxEnd', array( &$this, true ) ); + // Avoid PHP 7.1 warning of passing $this by reference + $template = $this; + Hooks::run( 'SkinTemplateToolboxEnd', array( &$template, true ) ); ?> -- To view, visit https://gerrit.wikimedia.org/r/400563 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6a7e72bac3c7cc368b5d911a0b6a82295570e09a Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/skins/Gamepress Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...erudite[master]: Avoid PHP 7.1 warning of &$this usage
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/400562 ) Change subject: Avoid PHP 7.1 warning of &$this usage .. Avoid PHP 7.1 warning of &$this usage Bug: T153505 Change-Id: Iea4e074f47a10093249777c367fa48547905b5ba --- M Erudite.skin.php 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/erudite refs/changes/62/400562/1 diff --git a/Erudite.skin.php b/Erudite.skin.php index bde9386..60563f1 100644 --- a/Erudite.skin.php +++ b/Erudite.skin.php @@ -208,7 +208,9 @@ foreach ( $this->getToolbox() as $key => $tbitem ) { echo $this->makeListItem( $key, $tbitem ); } - Hooks::run( 'SkinTemplateToolboxEnd', array( &$this ) ); + // Avoid PHP 7.1 warning of passing $this by reference + $skin = $this; + Hooks::run( 'SkinTemplateToolboxEnd', array( &$skin ) ); ?> -- To view, visit https://gerrit.wikimedia.org/r/400562 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iea4e074f47a10093249777c367fa48547905b5ba Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/skins/erudite Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Dusk[master]: Moved the $this references into variables
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/400441 ) Change subject: Moved the $this references into variables .. Moved the $this references into variables This avoids warnings by PHP 7.1 Bug: T153505 Change-Id: I4dff3f65457682d87e2954f5b0f66b4ffc2f82b4 --- M includes/DuskTemplate.php 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/Dusk refs/changes/41/400441/1 diff --git a/includes/DuskTemplate.php b/includes/DuskTemplate.php index 430521f..2936ae9 100644 --- a/includes/DuskTemplate.php +++ b/includes/DuskTemplate.php @@ -189,7 +189,9 @@ echo $this->makeListItem( $key, $tbitem ); } - Hooks::run( 'SkinTemplateToolboxEnd', array( &$this, true ) ); +// Avoid PHP 7.1 warning of passing $this by reference +$template = $this; + Hooks::run( 'SkinTemplateToolboxEnd', array( &$template, true ) ); ?> -- To view, visit https://gerrit.wikimedia.org/r/400441 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I4dff3f65457682d87e2954f5b0f66b4ffc2f82b4 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/skins/Dusk Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...WikiArticleFeeds[master]: Replaced Article::getContent() usage with WikiPage::getConte...
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/330150 ) Change subject: Replaced Article::getContent() usage with WikiPage::getContent() .. Replaced Article::getContent() usage with WikiPage::getContent() Change-Id: Ia816a80a36103d893e1843c4993e3884873dfa4b --- M WikiArticleFeeds_body.php 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikiArticleFeeds refs/changes/50/330150/1 diff --git a/WikiArticleFeeds_body.php b/WikiArticleFeeds_body.php index 9e3259e..5e994b9 100644 --- a/WikiArticleFeeds_body.php +++ b/WikiArticleFeeds_body.php @@ -313,7 +313,8 @@ $feedUrl = $title->getFullURL(); # Parse page into feed items. - $content = $wgOut->parse( $article->getContent() . "\n__NOEDITSECTION__ __NOTOC__" ); + $content = $wgOut->parse( ContentHandler::getContentText( $article->getPage()->getContent() ) . + "\n__NOEDITSECTION__ __NOTOC__" ); preg_match_all( '/(.*?)/s', $content, -- To view, visit https://gerrit.wikimedia.org/r/330150 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia816a80a36103d893e1843c4993e3884873dfa4b Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/WikiArticleFeeds Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...BlockAndNuke[master]: Replaced Linker::link() usages with LinkRenderer
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/328670 ) Change subject: Replaced Linker::link() usages with LinkRenderer .. Replaced Linker::link() usages with LinkRenderer Bug: T149346 Change-Id: Ife9e40927211b2ce36f5f0402ca2acd55713a562 --- M BlockAndNuke.body.php 1 file changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlockAndNuke refs/changes/70/328670/1 diff --git a/BlockAndNuke.body.php b/BlockAndNuke.body.php index 3c39725..2073631 100644 --- a/BlockAndNuke.body.php +++ b/BlockAndNuke.body.php @@ -111,7 +111,7 @@ $wgOut->addHtml( "" ); foreach( $pages as $title ) { - $wgOut->addHtml( "". Linker::link( $title ) ); + $wgOut->addHtml( "". $this->getLinkRenderer()->makeLink( $title ) ); $wgOut->addHtml( Html::hidden( 'pages[]', $title ) ); } $wgOut->addHtml( "\n" ); @@ -144,7 +144,7 @@ $seen[$user_2] = true; $wgOut->addHtml( "" . - Linker::link( Title::newFromText( $user_2, NS_USER ) ) + $this->getLinkRenderer()->makeLink( Title::newFromText( $user_2, NS_USER ) ) ); $wgOut->addHTML( Html::hidden( 'names_2[]', $user_2 ). @@ -166,7 +166,7 @@ $seen[$ip] = true; $wgOut->addHtml( "" . - Linker::link( Title::newFromText( $ip, NS_USER ) ) + $this->getLinkRenderer()->makeLink( Title::newFromText( $ip, NS_USER ) ) ); $wgOut->addHTML( Html::hidden( 'ip[]', $ip ) ); } -- To view, visit https://gerrit.wikimedia.org/r/328670 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ife9e40927211b2ce36f5f0402ca2acd55713a562 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/BlockAndNuke Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...BibManager[master]: Replaced Linker::link() usages with LinkRenderer
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/328641 ) Change subject: Replaced Linker::link() usages with LinkRenderer .. Replaced Linker::link() usages with LinkRenderer Bug: T149346 Change-Id: I5ed12a11170474311fdd1d941a4c93adffe171a4 --- M includes/BibManagerHooks.php M includes/BibManagerPagerList.php M includes/specials/SpecialBibManagerList.php 3 files changed, 22 insertions(+), 15 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BibManager refs/changes/41/328641/1 diff --git a/includes/BibManagerHooks.php b/includes/BibManagerHooks.php index 43cdd16..bf27544 100644 --- a/includes/BibManagerHooks.php +++ b/includes/BibManagerHooks.php @@ -1,5 +1,7 @@ getBibEntryByCitation( $args['id'] ); + $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer(); + $sTooltip = ''; $sLink = ''; if ( empty( $entry ) ) { $spTitle = SpecialPage::getTitleFor( 'BibManagerCreate' ); - $sLink = Linker::link( + $sLink = $linkRenderer->makeBrokenLink( $spTitle, $args['id'], array( 'class' => 'new' ), - array ( 'bm_bibtexCitation' => $args['id'] ), - array ( 'broken' => true ) + array ( 'bm_bibtexCitation' => $args['id'] ) ); $sTooltip = '' . wfMessage('bm_error_not-existing')->escaped(); if ($wgUser->isAllowed('bibmanagercreate')){ @@ -102,7 +105,7 @@ $args['id'], $wgBibManagerCitationArticleNamespace ); - $sLink = Linker::link( + $sLink = $linkRenderer->makeLink( $oCitationTitle, $args['id'], array ( 'title' => '' ) @@ -366,15 +369,15 @@ if ( $res === false ) { return '[' . wfMessage( 'bm_no-data-found' )->escaped() . ']'; } + $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer(); foreach ( $res as $key => $val ) { if ( empty( $val ) ){ $spTitle = SpecialPage::getTitleFor( 'BibManagerCreate' ); // TODO RBV (10.11.11 13:50): Dublicate code --> encapsulate - $citLink = Linker::link( + $citLink = $linkRenderer->makeBrokenLink( $spTitle, $key, array ( 'class' => 'new' ), - array ( 'bm_bibtexCitation' => $key ), - array ( 'broken' => true ) + array ( 'bm_bibtexCitation' => $key ) ); $sLinkToEdit = SpecialPage::getTitleFor( 'BibManagerCreate' )->getLocalURL( array ( 'bm_bibtexCitation' => $key )); $citFormat = '' . wfMessage('bm_error_not-existing')->escaped(); @@ -393,7 +396,7 @@ $val['bm_bibtexCitation'], $wgBibManagerCitationArticleNamespace ); - $citLink = Linker::link( $title, $val['bm_bibtexCitation'] ); + $citLink = $linkRenderer->makeLink( $title, $val['bm_bibtexCitation'] ); $citFormat = self::formatEntry( $val ); $citIcons = self::getIcons( $val ); } diff --git a/includes/BibManagerPagerList.php b/includes/BibManagerPagerList.php index 676f8ce..5d12bd6 100644 --- a/includes/BibManagerPagerList.php +++ b/includes/BibManagerPagerList.php @@ -1,5 +1,7 @@ bm_bibtexCitation, $wgBibManagerCitationArticleNamespace ); - $citationLink = Linker::link( $citationTitle, $row->bm_bibtexCitation ); + $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer(); + + $citationLink = $linkRenderer->makeLink( $citationTitle, $row->bm_bibtexCitation ); $editLink= ''; $deleteLink = ''; $exportLink = Html::input( @@ -100,9 +104,9 @@ $specialPageQuery = array ( 'bm_bibtexCitation' => $row->bm_bibtexCitation ); if ($wgUser->isAllowed('bibmanageredit')){ - $editLink = Linker::link( + $editLink =
[MediaWiki-commits] [Gerrit] mediawiki...ArticleFeedbackv5[master]: Replaced Linker::link() usages with LinkRenderer
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/328489 ) Change subject: Replaced Linker::link() usages with LinkRenderer .. Replaced Linker::link() usages with LinkRenderer Bug: T149346 Change-Id: I0c79990e44aaa0c5b1916cacef410bc5ab8fff7b --- M ArticleFeedbackv5.hooks.php M ArticleFeedbackv5.log.php M ArticleFeedbackv5.render.php M SpecialArticleFeedbackv5.php M api/ApiViewActivityArticleFeedbackv5.php 5 files changed, 39 insertions(+), 24 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ArticleFeedbackv5 refs/changes/89/328489/1 diff --git a/ArticleFeedbackv5.hooks.php b/ArticleFeedbackv5.hooks.php index d4f2097..8b82578 100644 --- a/ArticleFeedbackv5.hooks.php +++ b/ArticleFeedbackv5.hooks.php @@ -1,4 +1,7 @@ isHidden() || $record->isRequested() || $record->isOversighted() ); foreach ( $dateFormats as $format => &$formattedTime ) { - $formattedTime = Linker::link( - $feedbackTitle, - htmlspecialchars( $formattedTime ) - ); + $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer(); + $formattedTime = $linkRenderer->makeLink( $feedbackTitle, $formattedTime ); if ( $historyDeleted ) { $formattedTime = '' . $formattedTime . ''; } diff --git a/ArticleFeedbackv5.log.php b/ArticleFeedbackv5.log.php index a6374de..e0d0efb 100644 --- a/ArticleFeedbackv5.log.php +++ b/ArticleFeedbackv5.log.php @@ -1,4 +1,7 @@ getLinkRenderer(); $links = array( - Linker::link( + $linkRenderer->makeLink( $this->entry->getTarget(), - $this->msg( 'hist' )->escaped(), + $this->msg( 'hist' )->text(), array(), array( 'action' => 'history', diff --git a/ArticleFeedbackv5.render.php b/ArticleFeedbackv5.render.php index c95635e..e7e5907 100644 --- a/ArticleFeedbackv5.render.php +++ b/ArticleFeedbackv5.render.php @@ -9,6 +9,8 @@ * @version$Id$ */ +use MediaWiki\MediaWikiServices; + /** * Handles rendering of a submitted feedback entry in the Special page's list view * @@ -383,6 +385,7 @@ */ private function feedbackHead( $message, $record ) { $anonMessage = ''; + $linkRender = MediaWikiServices::getInstance()->getLinkRenderer(); // User info if ( $record->aft_user == 0 ) { @@ -394,7 +397,7 @@ // IPv4 - display the same way regular users are displayed // display name = visitor's ip - $userName = Linker::link( $title, htmlspecialchars( $record->aft_user_text ) ); + $userName = $linkRender->makeLink( $title, $record->aft_user_text ); } else { // not IPv4 - display IP on next line (since IPv6 is rather long, it'd break our display) @@ -402,7 +405,7 @@ $userName = wfMessage( 'articlefeedbackv5-form-anon-username' )->escaped(); // additional line to be printed with the IPv6 address (with link to contributions) - $userLink = Linker::link( $title, htmlspecialchars( $record->aft_user_text ) ); + $userLink = $linkRender->makeLink( $title, $record->aft_user_text ); $anonMessage = wfMessage( 'articlefeedbackv5-form-anon-message' )->rawParams( $userLink )->escaped(); } } else { @@ -417,7 +420,7 @@ } // display name = username - $userName = Linker::link( $title, htmlspecialchars( $record->aft_user_text ) ); + $userName = $linkRender->makeLink( $title, $record->aft_user_text ); } if ( $this->isCentral ) { @@ -467,14 +470,17 @@ // link to permalink page $permalink = ''; if ( !$this->isPermalink ) { + + $linkRender = MediaWikiServices::getInstance()->getLinkRenderer(); + $permalink = wfMessage( 'pipe-separator' )->escaped() . Html::rawElement( 'span', array( 'class' => 'articleFeedbackv5-comment-details-link' ), - Linker::link( +
[MediaWiki-commits] [Gerrit] mediawiki...ArticleFeedback[master]: Replaced Linker::link() usage with LinkRenderer and added a ...
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/328196 ) Change subject: Replaced Linker::link() usage with LinkRenderer and added a little bit of documentation .. Replaced Linker::link() usage with LinkRenderer and added a little bit of documentation Bug: T149346 Change-Id: I5c6a85a552424b98b306bc3e8cd539e5439446eb --- M SpecialArticleFeedback.php 1 file changed, 9 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ArticleFeedback refs/changes/96/328196/1 diff --git a/SpecialArticleFeedback.php b/SpecialArticleFeedback.php index 68bf375..139ee4d 100644 --- a/SpecialArticleFeedback.php +++ b/SpecialArticleFeedback.php @@ -135,7 +135,7 @@ if ( !$pageTitle ) { continue; } - $row['page'] = Linker::link( $pageTitle, $pageTitle->getPrefixedText() ); + $row['page'] = $this->getLinkRenderer()->makeLink( $pageTitle, $pageTitle->getPrefixedText() ); foreach ( $categories as $catid => $catmsg ) { if ( isset( $page['ratings'][$catid] ) ) { $number = $this->formatNumber( $page['ratings'][$catid] ); @@ -187,7 +187,7 @@ foreach ( $this->getWeeklyMostChanged() as $page ) { $row = array(); $pageTitle = Title::newFromText( $page['page'] ); - $row['page'] = Linker::link( $pageTitle, $pageTitle->getPrefixedText() ); + $row['page'] = $this->getLinkRenderer()->makeLink( $pageTitle, $pageTitle->getPrefixedText() ); foreach ( $categories as $catid => $catmsg ) { if ( isset( $page['changes'][$catid] ) ) { $number = $this->formatNumber( $page['changes'][$catid] ); @@ -237,7 +237,7 @@ if ( !$pageTitle ) { continue; } - $row['page'] = Linker::link( $pageTitle, $pageTitle->getPrefixedText() ); + $row['page'] = $this->getLinkRenderer()->makeLink( $pageTitle, $pageTitle->getPrefixedText() ); foreach ( $categories as $catid => $catmsg ) { if ( isset( $page['ratings'][$catid] ) ) { $number = $this->formatNumber( $page['ratings'][$catid] ); @@ -550,6 +550,12 @@ return self::$categories; } + /** +* Gets a Title object if possible from cache +* +* @param $id integer +* @return Title +*/ protected static function getTitleFromID( $id ) { // There's no caching in Title::newFromId() so we hack our own around it if ( !isset( self::$titleCache[$id] ) ) { -- To view, visit https://gerrit.wikimedia.org/r/328196 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5c6a85a552424b98b306bc3e8cd539e5439446eb Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ArticleFeedback Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...Wikilog[master]: Removed usages of a deprecated method Revision::getText
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/327925 ) Change subject: Removed usages of a deprecated method Revision::getText .. Removed usages of a deprecated method Revision::getText Bug: T151973 Change-Id: Ice23dbd7f06a8ccdc7b555097153da2b3e94928b --- M WikilogComment.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikilog refs/changes/25/327925/1 diff --git a/WikilogComment.php b/WikilogComment.php index 41db768..3c9b26e 100644 --- a/WikilogComment.php +++ b/WikilogComment.php @@ -148,7 +148,7 @@ $dbr = wfGetDB( DB_SLAVE ); $rev = Revision::loadFromId( $dbr, $this->mCommentRev ); if ( $rev ) { - $this->mText = $rev->getText(); + $this->mText = $rev->getContent(); $this->mTextChanged = false; } } -- To view, visit https://gerrit.wikimedia.org/r/327925 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ice23dbd7f06a8ccdc7b555097153da2b3e94928b Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikilog Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...ImageTagging[master]: Removed usages of a deprecated method Revision::getText
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/327922 ) Change subject: Removed usages of a deprecated method Revision::getText .. Removed usages of a deprecated method Revision::getText Bug: T151973 Change-Id: I1291b6d952351b3458290f33f70e18ce62221b8f --- M ImageTaggingHooks.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ImageTagging refs/changes/22/327922/1 diff --git a/ImageTaggingHooks.php b/ImageTaggingHooks.php index 08aba21..4bfcda9 100644 --- a/ImageTaggingHooks.php +++ b/ImageTaggingHooks.php @@ -274,7 +274,7 @@ array( 'known' ) ); $revision = Revision::newFromTitle( $t ); - $text = $revision->getText(); + $text = $revision->getContent(); $lines = explode( "\n", $text ); -- To view, visit https://gerrit.wikimedia.org/r/327922 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1291b6d952351b3458290f33f70e18ce62221b8f Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ImageTagging Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...IndexFunction[master]: Removed usages of a deprecated method Revision::getText
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/327923 ) Change subject: Removed usages of a deprecated method Revision::getText .. Removed usages of a deprecated method Revision::getText Bug: T151973 Change-Id: Ie4b990f1f7266e37ad803ad9b9741bfa85edcf62 --- M IndexAbstracts.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/IndexFunction refs/changes/23/327923/1 diff --git a/IndexAbstracts.php b/IndexAbstracts.php index 4082606..4926001 100644 --- a/IndexAbstracts.php +++ b/IndexAbstracts.php @@ -99,7 +99,7 @@ $rev = Revision::newFromTitle( $title ); if ( $rev ) { - $text = substr( $rev->getText(), 0, 16384 ); + $text = substr( $rev->getContent(), 0, 16384 ); // Ok, first note this is a TERRIBLE HACK. :D // -- To view, visit https://gerrit.wikimedia.org/r/327923 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie4b990f1f7266e37ad803ad9b9741bfa85edcf62 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/IndexFunction Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...MadLib[master]: Removed usages of a deprecated method Revision::getText
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/327924 ) Change subject: Removed usages of a deprecated method Revision::getText .. Removed usages of a deprecated method Revision::getText Bug: T151973 Change-Id: I0739a747491d901af2bfe0386e64d5e643fc9b9e --- M MadLib.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MadLib refs/changes/24/327924/1 diff --git a/MadLib.php b/MadLib.php index 3fd430f..a39d07e 100644 --- a/MadLib.php +++ b/MadLib.php @@ -201,7 +201,7 @@ if(is_object($title)) { $r = Revision::newFromTitle($title); if(is_object($r)) -return $r->getText(); +return $r->getContent(); } return ""; } \ No newline at end of file -- To view, visit https://gerrit.wikimedia.org/r/327924 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0739a747491d901af2bfe0386e64d5e643fc9b9e Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MadLib Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...ImageTagging[master]: Removed usages of a deprecated method Revision::getText
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/327921 ) Change subject: Removed usages of a deprecated method Revision::getText .. Removed usages of a deprecated method Revision::getText Bug: T151973 Change-Id: I7bcb9926a504ad513f6d095ddc8c2835d94e5dab --- M ImageTaggingHooks.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ImageTagging refs/changes/21/327921/1 diff --git a/ImageTaggingHooks.php b/ImageTaggingHooks.php index 08aba21..4bfcda9 100644 --- a/ImageTaggingHooks.php +++ b/ImageTaggingHooks.php @@ -274,7 +274,7 @@ array( 'known' ) ); $revision = Revision::newFromTitle( $t ); - $text = $revision->getText(); + $text = $revision->getContent(); $lines = explode( "\n", $text ); -- To view, visit https://gerrit.wikimedia.org/r/327921 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7bcb9926a504ad513f6d095ddc8c2835d94e5dab Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ImageTagging Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...GoogleMaps[master]: Removed usages of a deprecated method Revision::getText
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/327920 ) Change subject: Removed usages of a deprecated method Revision::getText .. Removed usages of a deprecated method Revision::getText Bug: T151973 Change-Id: I871c3b16f4ecbc8ec5858f4c9afcd11fb874c889 --- M GoogleMaps.body.php M SpecialGoogleMapsKML.php 2 files changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GoogleMaps refs/changes/20/327920/1 diff --git a/GoogleMaps.body.php b/GoogleMaps.body.php index ea677d1..42147a8 100644 --- a/GoogleMaps.body.php +++ b/GoogleMaps.body.php @@ -567,7 +567,7 @@ $revision = is_null($title) ? null : Revision::newFromTitle($title); $parsedArticleText = is_null($revision) ? null : - self::parseWikiText($pParser, $pLocalParser, $revision->getText(), $revision->getTitle(), $pParser->mOptions); + self::parseWikiText($pParser, $pLocalParser, $revision->getContent(), $revision->getTitle(), $pParser->mOptions); $titleMaybeNonexistent = is_null($title) ? Title::makeTitleSafe(NS_MAIN, $pTitle) : $title; $titleLink = is_null($titleMaybeNonexistent) ? '' : Linker::link($titleMaybeNonexistent); if (count($pTabs)) { diff --git a/SpecialGoogleMapsKML.php b/SpecialGoogleMapsKML.php index 4e3de79..4aff0ee 100644 --- a/SpecialGoogleMapsKML.php +++ b/SpecialGoogleMapsKML.php @@ -39,7 +39,7 @@ $localParser = new Parser(); $localParser->startExternalParse( $this->getPageTitle(), $popts, Parser::OT_WIKI, true ); - if (preg_match_all("/(.*?)<\/googlemap>/s", $revision->getText(), $matches)) { + if (preg_match_all("/ (.*?)<\/googlemap>/s", $revision->getContent(), $matches)) { $exporter->addFileHeader(); for($i=0;$i ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...FirstSteps[master]: Removed usages of a deprecated method Revision::getText
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/327919 ) Change subject: Removed usages of a deprecated method Revision::getText .. Removed usages of a deprecated method Revision::getText Bug: T151973 Change-Id: Ief05d1e48ea3fba9d185430306855027a9987a75 --- M SpecialFirstSteps.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/FirstSteps refs/changes/19/327919/1 diff --git a/SpecialFirstSteps.php b/SpecialFirstSteps.php index 49f7c0c..0248f94 100644 --- a/SpecialFirstSteps.php +++ b/SpecialFirstSteps.php @@ -255,7 +255,7 @@ if ( $userpage->exists() ) { $revision = Revision::newFromTitle( $userpage ); - $text = $revision->getText(); + $text = $revision->getContent(); $preload = $text; if ( preg_match( '/{{#babel:/i', $text ) ) { -- To view, visit https://gerrit.wikimedia.org/r/327919 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ief05d1e48ea3fba9d185430306855027a9987a75 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/FirstSteps Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...DebugTemplates[master]: Removed usages of the deprecated method Revision::getText
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/327917 ) Change subject: Removed usages of the deprecated method Revision::getText .. Removed usages of the deprecated method Revision::getText Bug: T151973 Change-Id: I35151660a68f1e9b049c1f1aff16c56ea608aca4 --- M SpecialDebugTemplates.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DebugTemplates refs/changes/17/327917/1 diff --git a/SpecialDebugTemplates.php b/SpecialDebugTemplates.php index b0f2836..9ba3079 100644 --- a/SpecialDebugTemplates.php +++ b/SpecialDebugTemplates.php @@ -199,7 +199,7 @@ if ( is_object( $title ) ) { $r = Revision::newFromTitle( $title ); if ( is_object( $r ) ) - return $r->getText(); + return $r->getContent(); } return ""; } -- To view, visit https://gerrit.wikimedia.org/r/327917 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I35151660a68f1e9b049c1f1aff16c56ea608aca4 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/DebugTemplates Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...ExtTab[master]: Removed usages of a deprecated method Revision::getText
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/327918 ) Change subject: Removed usages of a deprecated method Revision::getText .. Removed usages of a deprecated method Revision::getText Bug: T151973 Change-Id: I85d7b9df7a16843432121057390fdc30bfef66a0 --- M includes/ET_AjaxAccess.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ExtTab refs/changes/18/327918/1 diff --git a/includes/ET_AjaxAccess.php b/includes/ET_AjaxAccess.php index 7278481..1c54969 100644 --- a/includes/ET_AjaxAccess.php +++ b/includes/ET_AjaxAccess.php @@ -23,7 +23,7 @@ $popts = $wgOut->parserOptions(); $popts->setTidy( true ); $popts->enableLimitReport(); - $html = $wgParser->parse( $revision->getText(), $wgTitle, $popts )->getText(); + $html = $wgParser->parse( $revision->getContent(), $wgTitle, $popts )->getText(); } return $html; } -- To view, visit https://gerrit.wikimedia.org/r/327918 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I85d7b9df7a16843432121057390fdc30bfef66a0 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ExtTab Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki...BiblioPlus[master]: Removed usages of a deprecated method Revision::getText
LukBukkit has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/327916 ) Change subject: Removed usages of a deprecated method Revision::getText .. Removed usages of a deprecated method Revision::getText Bug: T151973 Change-Id: I30e698b5b1cbb2faeac5ae399f366e64d7850120 --- M BiblioPlus.body.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BiblioPlus refs/changes/16/327916/1 diff --git a/BiblioPlus.body.php b/BiblioPlus.body.php index 3c988d6..8cae4e6 100644 --- a/BiblioPlus.body.php +++ b/BiblioPlus.body.php @@ -80,7 +80,7 @@ */ function fetchPage( $title ) { $rev = Revision::newFromTitle( $title ); -return $rev->getText(); +return $rev->getContent(); } /** -- To view, visit https://gerrit.wikimedia.org/r/327916 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I30e698b5b1cbb2faeac5ae399f366e64d7850120 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/BiblioPlus Gerrit-Branch: master Gerrit-Owner: LukBukkit___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits