Commit graph

4161 commits

Author SHA1 Message Date
Rotem Liss e1d2743d7a Localization update for he. 2009-02-11 19:20:18 +00:00
Siebrand Mazeland 271a0a7aad Localisation updates for extension messages from translatewiki.net (2009-02-11 18:17 UTC) 2009-02-11 18:38:18 +00:00
Andrew Garrett 0880f444b1 Abuse Filter Parser updates:
* Use strcspn to scan ahead for long regions of uninteresting text in string handling (performance).
* Remove cruft specific to my system in phpTest.php.
* Remove a test that was in incorrect syntax, and useless without adding variable support.
2009-02-11 18:23:21 +00:00
Andrew Garrett bfe57be65d Rewrite of Abuse Filter parser tokeniser.
I've made it more performant and fixed a few bugs by using regexes
instead of PHP loops, where possible, under the assumption that the
PCRE parser is more efficient than the same thing implemented in pure PHP.
Also, I'm now passing the same string around and calculating offsets, which
Tim tells me is far more performant than continually truncating the same string.

All tests still pass, with the exception of string.t, which I've modified
to remove the offending code, which never worked.
2009-02-11 01:41:51 +00:00
Siebrand Mazeland 6c9266d8e3 Localisation updates for extension messages from translatewiki.net (2009-02-10 23:29 UTC) 2009-02-10 23:48:58 +00:00
Siebrand Mazeland 112e031ecd Localisation updates for extension messages from translatewiki.net (2009-02-10 06:41 UTC) 2009-02-10 07:01:19 +00:00
Siebrand Mazeland bc91dc3843 Localisation updates for extension messages from translatewiki.net (2009-02-08 22:48 UTC) 2009-02-08 23:02:36 +00:00
Siebrand Mazeland 1df448d530 Localisation updates for extensions messages from translatewiki.net (2009-02-07 21:24 UTC) 2009-02-07 22:04:21 +00:00
Tim Starling c8b0007232 * Break long lines. If I'm going to review this code, I need to be able to read it.
* Write array literals with one item per line. This makes diffs which add or remove items far easier to interpret, and makes merging such changes feasible. And it looks nicer too.
* Use line breaks to show the logical structure of your code. This enhances readability. Bring similar elements in a list into alignment, in order to reveal the differences between those elements at a glance.
* Removed a fun game of spot-the-difference in AbuseFilterHistoryPager::getQueryInfo(). If I want fun games I'll play UFO:AI.
* Moved some oddly placed assignments (in expressions) to their own statements: such assignments reduce readbility.
2009-02-07 09:34:11 +00:00
Andrew Garrett 53edcafc69 Reduce exception on encountering an unrecognised action to a debug log message. 2009-02-07 02:26:56 +00:00
Siebrand Mazeland 050e623836 Localisation updates for extension messages from translatewiki.net (2009-02-05 18:09 UTC) 2009-02-05 18:20:16 +00:00
Andrew Garrett 0b9f621633 Whitespace 2009-02-04 22:16:06 +00:00
Andrew Garrett 334e5a6b09 Fix examine links in AbuseLog. 2009-02-04 21:22:41 +00:00
Rotem Liss c202f89003 Localization update for he. 2009-02-04 20:52:06 +00:00
Andrew Garrett dd52ffe658 Variable naming conflict. 2009-02-04 19:59:52 +00:00
Andrew Garrett 7dd35167ee Show filter itself, rather than the private comments, in the recent filter changes display. 2009-02-04 19:56:21 +00:00
Andrew Garrett fcdfd79c67 Allow Abuse Log entries to be examined in the same way recent changes items are. 2009-02-04 19:51:03 +00:00
Siebrand Mazeland 3617248d13 Localisation updates for extension messages from translatewiki.net (2009-02-04 18:04 UTC) 2009-02-04 18:20:54 +00:00
Rotem Liss 7fc78be483 Localization update for he. 2009-02-04 13:20:40 +00:00
Andrew Garrett bcf5381eec Fix up throttling -- was allowing one extra action. 2009-02-03 23:44:47 +00:00
Andrew Garrett 5cfbee6e22 Clarify title for history page 2009-02-03 23:21:09 +00:00
Rotem Liss a49ad34249 Localization update for he. 2009-02-03 23:14:01 +00:00
Andrew Garrett 9e5d11e46b Add an edit link too. 2009-02-03 22:54:46 +00:00
Rotem Liss a4574866e2 Localization update for he. 2009-02-03 22:50:23 +00:00
Andrew Garrett 60cfbf15c7 Add a fancy selector for the warning message in the Abuse Filter edit screen, and allow inline previews of the warning messages. 2009-02-03 22:45:42 +00:00
Andrew Garrett 0918642869 Fix tester for titles which don't seem to work properly. 2009-02-03 18:48:16 +00:00
Andrew Garrett 3e67f66246 Add a missing field in SELECT. 2009-02-03 18:07:11 +00:00
Andrew Garrett 3d13a2dc92 Fix double-prefixing. 2009-02-03 00:15:12 +00:00
Andrew Garrett 2e41b7d9d7 Fix abuse filter blocking *everything*. 2009-02-02 23:30:48 +00:00
Andrew Garrett 9eca9a7857 E_NOTICE 2009-02-02 17:57:06 +00:00
Rotem Liss 05e8d8490a Localization update for he. 2009-02-02 16:06:01 +00:00
Alexandre Emsenhuber a9e5660c49 PLURAL support in 'abusefilter-test-intro' 2009-02-02 15:37:08 +00:00
Siebrand Mazeland 779775cf2a Localisation updates for extension messages from Betawiki (2009-02-02 14:46 UTC) 2009-02-02 15:01:57 +00:00
Siebrand Mazeland da3f33884b Localisation updates for extension messages from Betawiki (2009-02-01 13:41 UTC) 2009-02-01 14:04:42 +00:00
Rotem Liss bc80e34d71 Localization update for he; removing self-link and some other fixes in en:. 2009-02-01 12:59:59 +00:00
Siebrand Mazeland 9d75e9f4e6 Localisation updates for extension messages from Betawiki (2009-01-31 23:29 UTC) 2009-01-31 23:50:10 +00:00
Andrew Garrett 6f91720eac Allow af_public_comments to be wikitext.
Relatedly, add parseInline function to OutputPage, to avoid duplicating the same awful regex in wfMsgExt.
2009-01-31 01:59:13 +00:00
Andrew Garrett 5c6da8cbda Char location instead of vague 'at end'. 2009-01-31 00:20:26 +00:00
Andrew Garrett 430c95a60d Make variable names and keywords case-insensitive. 2009-01-30 23:46:25 +00:00
Andrew Garrett 61ad9a0aca ADDED_LINKS was completely broken. Seems to have been comparing links in the old text to.... links in the old text! 2009-01-30 23:31:31 +00:00
Andrew Garrett fc1ecd6caa Don't show tag filter boxes if no tags are defined. To support this change without bringing down servers, cache the list of valid tags in the object cache. 2009-01-30 23:24:29 +00:00
Andrew Garrett ae7089e23d Make (examine) links on batch test page propagate the filter that was used 2009-01-30 23:24:11 +00:00
Andrew Garrett b68f53bef6 Check syntax before evaluating an expression 2009-01-30 23:23:52 +00:00
Andrew Garrett bfed0d967d Oops -- you don't need the -revert permission to test a filter! :D 2009-01-30 19:30:51 +00:00
Andrew Garrett 769d0a6ea2 Add a nice convenience link to the testing interface to the filter editing interface. 2009-01-30 19:19:03 +00:00
Andrew Garrett 904e6d5c0f Remove duplicate schema update. 2009-01-30 19:02:28 +00:00
Andrew Garrett 5fa5e4367c Fix automatic schema updates, a holdover from moving the code into a hook. 2009-01-30 18:51:37 +00:00
Alexandre Emsenhuber 65cec0be93 * Added new lines for source readability
* Change null to an empty string, so that Xml::element() doesn't generate a opening element only, which results in a XHTML error
2009-01-30 15:40:59 +00:00
Alexandre Emsenhuber bd8027e336 svn:eol-style native 2009-01-30 15:06:21 +00:00
Siebrand Mazeland 7c29d67d1b article -> page 2009-01-30 07:02:57 +00:00