转到文件
Umherirrender 35984ebb37 replaceAll.php: Replace get_class with instanceof
The User class was namespaced in 1d0b7ae1,
checking class names as string is broken, use instanceof.
There are no subclasses of User class to ignore at this point.

Also use User::getName instead of implicit User::__toString

Change-Id: I8b9f73609a7ef9f781c8a5ae27e00d612d33ee4f
2024-03-13 16:07:30 +08:00
.phan Use HookHandlers for AdminLinks hooks 2023-08-15 17:18:02 +02:00
i18n Localisation updates from https://translatewiki.net. 2024-02-14 07:21:36 +01:00
maintenance replaceAll.php: Replace get_class with instanceof 2024-03-13 16:07:30 +08:00
resources Replace "Announce changes" option with (inverse) "Mark as bot" 2023-08-08 16:13:07 +00:00
src Fix documentation problem 2023-09-21 20:58:30 +05:30
tests/phpunit/unit Add unit test for Search class 2023-10-02 13:22:31 +00:00
.eslintrc.json build: Updating mediawiki/mediawiki-codesniffer to 33.0.0 2020-11-04 16:53:49 +00:00
.gitignore build: Updating dependencies 2019-08-03 04:41:58 +00:00
.gitreview Whoops, track not trace 2016-10-24 17:03:28 -07:00
.phpcs.xml build: Updating mediawiki/mediawiki-codesniffer to 41.0.0 2023-03-12 09:15:50 +00:00
.stylelintrc.json Change CSS identifiers 2021-09-08 11:53:43 +00:00
COPYING Provide tiny tweaks 2016-03-10 14:27:51 +01:00
Gruntfile.js build: Remove syntax option from stylelint 2022-10-27 00:13:14 +02:00
README Version 1.8 2023-09-07 16:44:16 +00:00
ReplaceText.i18n.alias.php ReplaceText: Special page aliases should not store in zh 2023-03-22 12:22:26 +00:00
composer.json Add lines to composer.json to make it valid 2023-06-08 13:11:37 +00:00
extension.json Version 1.8 2023-09-07 16:44:16 +00:00
package-lock.json build: Updating npm dependencies 2024-02-09 12:01:09 +00:00
package.json build: Updating npm dependencies 2023-06-02 01:41:02 +00:00

README

Replace Text Extension

        Version 1.8
        Yaron Koren, Niklas Laxström and others

This is free software licenced under the GNU General Public Licence. Please
see https://www.gnu.org/copyleft/gpl.html for further details, including the
full text and terms of the licence.

== Overview ==

Replace Text is an extension to MediaWiki that creates a new special page,
Special:ReplaceText, available to anyone who has the 'replacetext'
privilege, that does a text find-and-replace on all pages in the wiki,
selectable by namespace. Both the contents of pages and their titles can be
modified. The search is case-sensitive.

Since the replacement is not undoable, if the replacement string is
blank or a string that is already contained in the wiki, the 'ReplaceText'
page prompts the user to confirm the replacement before it is performed.

Each replacement shows up as a wiki edit, with the administrator who
performed the replacement appearing as the user and an edit summary that
looks like "Text replacement: 'search string' to 'replacement string'".

For more information, see the extension homepage at:
https://www.mediawiki.org/wiki/Extension:Replace_Text

== Requirements ==

This version of the Replace Text extension requires MediaWiki 1.32 or higher.

== Installation ==

To install the extension, place the entire 'ReplaceText' directory within
your MediaWiki 'extensions' directory, then add the following line to your
'LocalSettings.php' file:

     wfLoadExtension( 'ReplaceText' );

In order to perform replacements, you must have the 'replacetext' permission;
if you are an administrator on your wiki, the easiest way to do this is to
also add the following line:

     $wgGroupPermissions['sysop']['replacetext'] = true;

== Contact ==

Comments, questions, suggestions and bug reports are welcome, and can
be placed on the Talk page for the extension, or sent to Yaron at
yaron57@gmail.com.