Daniel Kraus
e9d5218267
Detect location of Maintenance.php in CLI script.
2014-06-04 13:57:23 +02:00
Daniel Kraus
6098342be3
Add start index option to CLI script.
2014-06-03 22:50:14 +02:00
Daniel Kraus
2e1d826ee2
First implementation of CLI maintenance script.
2014-06-03 21:44:54 +02:00
Daniel Kraus
56dc484949
Remove entry point warning from body file.
2014-06-03 21:44:47 +02:00
Daniel Kraus
3ea8d9509f
Change bot message for batch processing, add user.
2014-06-03 19:16:23 +02:00
Daniel Kraus
b32d48bdc9
Move the page processing function to LinkTitles class.
...
A public static function was created to DRY things up.
2014-06-03 18:52:04 +02:00
Daniel Kraus
ffb8daa1ad
Remove superfluous variable; comment code.
2014-06-03 18:28:25 +02:00
Daniel Kraus
5bdb6cc773
Add license info to SpecialLinkTitles.php.
2014-06-03 18:16:20 +02:00
Daniel Kraus
3e850f2781
Implement access restriction for special page.
2014-06-03 16:50:57 +02:00
Daniel Kraus
6f25d469ed
Show statistics when finished.
2014-06-03 16:40:37 +02:00
Daniel Kraus
0c9bbe0d0c
First working version of batch processing.
...
Added SpecialLinkTitles special page. This page is not secured yet, anybody
may call it an start automatic parsing of every page in the wiki!
2014-06-03 14:29:53 +02:00
Daniel Kraus
256f905c69
Prevent linking inside attributes etc.
...
Includes prevention of linking in class and style attributes of WikiTables.
2014-06-02 19:58:01 +02:00
Daniel Kraus
cf792072dd
Prevent creating indirect links to self.
...
Added code to check if a target page redirects to the current page, and
prevents linking to that target page. Note that this does not catch
situations where a page title exists twice, once with first capital letter
and once with first lowercase letter (should happen on test systems only).
2014-06-02 18:55:02 +02:00
Daniel Kraus
821d6d6b34
Prevent parsing in pre, html, and script tags.
2014-06-02 18:26:39 +02:00
Daniel Kraus
3d37b2d8ba
Refactor smart mode code for increased performance.
...
The preg_replace_callback callback functions were removed as static
functions and declared inline; the callback function for $wgCapitalLinks ==
false was simplified to speed up the process.
2014-06-02 18:22:53 +02:00
Daniel Kraus
7cb5b713ab
Add __NOAUTOLINKTARGET__ magic word; refactor.
...
The magic word __NOAUTOLINKTARGET__ will prevent a page from being
automatically linked to.
Some minor refactoring was performed.
2014-06-02 16:25:03 +02:00
Daniel Kraus
2930916ce6
Adjust copyright year.
2014-06-01 18:10:31 +02:00
Daniel Kraus
d9934d1b0d
Release version 2.3.1
2013-08-29 19:56:11 +02:00
Daniel Kraus
33a2169301
Fix regular expression.
...
The regular expression used to split the page content had a few pipe
characters in the wrong places, due to the previous 'cleaning-up' of the
convoluted expression for version 2.3.0.
2013-08-29 19:54:57 +02:00
Daniel Kraus
13db185d18
Create ZIP file for version 2.3.0.
2013-08-28 20:32:24 +02:00
Daniel Kraus
ed13ec9d96
Improve release script.
2013-08-28 20:27:50 +02:00
Daniel Kraus
a6d7184fc6
Add version 2.3.0 information.
2013-08-28 19:44:58 +02:00
Daniel Kraus
8257471d89
Prevent linking inside preformatted text and code.
...
Ignore lines that start with a space as well as text enclosed in <nowiki> or
<code> tags.
2013-08-28 19:40:04 +02:00
Daniel Kraus
ad700ca7f4
Do not mess up page content with leading slashes.
...
If a page title started with a slash, the algorithm to deal with leading
capitals would produce a faulty regexp by accessing $escapedTitle[0] and
substr($escapedTitle, 1), which would only capture the slash that escapes
the slash.
Also fix small bug in template detection (make expression non-greedy).
2013-08-27 20:55:06 +02:00
Daniel Kraus
9d414d0e5e
Prevent crashes due to regexp compilation errors
...
Page titles are now properly escaped using preg_quote() to prevent regexp
compilation errors if the title contains characters with special meanings in
regular expressions.
2013-08-09 17:36:32 +02:00
Daniel Kraus
3bf0ddfe17
Make the SQL query work with sqlite databases.
...
The fallback query does not use the CHAR_LENGTH function, but uses LENGTH.
2013-07-22 22:00:40 +02:00
Daniel Kraus
dde8300875
Git-ignore .bak files.
2013-07-10 22:32:24 +02:00
Daniel Kraus
53ad020f1d
Fix case-sensitive linking when $wgCapitalLinks is false.
2013-04-16 21:48:30 +02:00
Daniel Kraus
0f15be2fa8
Add version 2.1.1 information.
2013-03-06 19:04:41 +01:00
Daniel Kraus
aaa89cb536
Fix invalid callback error due to non-static declaration of LinkTitles::removeMagicWord.
2013-03-06 19:02:50 +01:00
Daniel Kraus
7da35ff4ec
Fix incompatibility with PHP prior to 5.3.
2013-03-06 18:59:45 +01:00
Daniel Kraus
ae1f72aefd
Do not remove magic word when saving page.
2013-02-23 14:09:33 +01:00
Daniel Kraus
6d38db71af
Use MagicWord class to handle the magic word; update copyright year.
2013-02-23 12:38:39 +01:00
Daniel Kraus
a6544b37d9
Add preliminary support for __NOAUTOLINKS__ magic word.
2013-02-20 21:47:23 +01:00
Daniel Kraus
05d77684c2
Introduce smart mode ($wgLinkTitlesSmartmode).
...
Smart mode generates aliases for page titles if a case mismatch is
detected.
2013-01-29 21:17:21 +01:00
Daniel Kraus
a448b8632b
Generate aliases for case-mismatched page titles.
...
If a page title does has a different case than an occurrence of the same
word(s) on the page that is being edited, the extension will now
automatically generate 'piped' links such as [[Linking titles|Linking
Titles]].
2013-01-26 18:44:45 +01:00
Daniel Kraus
455f333c28
Add option $wgLinkTitlesIgnoreCase to enable case-sensitive linking of page titles.
2013-01-22 16:11:25 +01:00
Daniel Kraus
a269b906b0
Merge branch 'master' of github.com:bovender/LinkTitles
2012-12-31 12:54:50 +01:00
Daniel Kraus
77c5840199
Fix bug that could prevent linking when $wgLinkTitlesFirstOnly was set to true.
2012-12-31 12:54:15 +01:00
Daniel Kraus
b7b7ba4542
Fix bug that could prevent linking when was set to true.
2012-12-31 12:47:56 +01:00
Daniel Kraus
5f82daad6a
Added two options to restrict linking to whole words.
2012-12-22 17:15:29 +01:00
Daniel Kraus
a2850bb318
Introduce new option to link only the first occurrence of a title on a page.
2012-12-11 16:37:06 +01:00
Daniel Kraus
44c4315857
Merge branch 'master' of github.com:bovender/LinkTitles
2012-10-09 19:59:09 +02:00
Daniel Kraus
2391bd84b3
Release 1.4.0.
2012-10-09 19:58:41 +02:00
Daniel Kraus
e2de28268d
Release 1.4.0.
2012-10-09 19:41:17 +02:00
Daniel Kraus
55e6f01b5f
Add new option to skip parsing of templates.
2012-10-09 19:40:33 +02:00
Daniel Kraus
e082931a98
Release 1.3.2
2012-10-05 18:32:09 +02:00
Daniel Kraus
b704c3187e
Fix incorrect handling of PreferShortTitles option.
2012-10-05 18:31:35 +02:00
Daniel Kraus
38a7cd2e16
Release 1.3.1.
2012-10-05 18:03:54 +02:00
Daniel Kraus
487b91b016
Fix typo in regexp that prevented proper functioning.
2012-10-05 18:02:16 +02:00