r111182 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r111181
|
r111182
|
r111183
>
Date:
19:20, 10 February 2012
Author:
werdna
Status:
resolved
Tags:
Comment:
(
bug 26684
) Deleting a reply and then replying again merges history, restoring causes database error.
Patch by Nikola Kovacs, includes some performance tweaks by me.
Modified paths:
/trunk/extensions/LiquidThreads/classes/Threads.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/extensions/LiquidThreads/classes/Threads.php
—
—
@@ -278,8 +278,11 @@
279
279
$basename = Threads::makeTitleValid( $basename );
280
280
281
281
$t = Title::makeTitleSafe( $namespace, $basename );
282
- while ( !$t || $t->exists() ||
283
- in_array( $t->getPrefixedDBkey(), self::$occupied_titles ) ) {
282
+ while ( !$t ||
283
+ in_array( $t->getPrefixedDBkey(), self::$occupied_titles ||
284
+ $t->exists() ||
285
+ $t->isDeletedQuick()
286
+ ) {
284
287
285
288
if ( !$t ) {
286
289
throw new MWException( "Error in creating title for basename $basename" );
Follow-up revisions
Revision
Commit summary
Author
Date
r111183
Fix syntax error (my own fault) in
r111182
werdna
19:21, 10 February 2012
Status & tagging log
22:47, 9 March 2012
Awjrichards
(
talk
|
contribs
)
changed the
status
of r111182
[
removed:
new
added:
resolved]