Index: trunk/phase3/maintenance/parserTests.txt |
— | — | @@ -7751,7 +7751,19 @@ |
7752 | 7752 | !! result |
7753 | 7753 | !! end |
7754 | 7754 | |
| 7755 | +!! test |
| 7756 | +Bad images - bug 16039: text after bad image disappears |
| 7757 | +!! input |
| 7758 | +Foo bar |
| 7759 | +[[File:Bad.jpg]] |
| 7760 | +Bar foo |
| 7761 | +!! result |
| 7762 | +<p>Foo bar |
| 7763 | +</p><p>Bar foo |
| 7764 | +</p> |
| 7765 | +!! end |
7755 | 7766 | |
| 7767 | + |
7756 | 7768 | TODO: |
7757 | 7769 | more images |
7758 | 7770 | more tables |
Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -1738,6 +1738,8 @@ |
1739 | 1739 | } |
1740 | 1740 | # cloak any absolute URLs inside the image markup, so replaceExternalLinks() won't touch them |
1741 | 1741 | $s .= $prefix . $this->armorLinks( $this->makeImage( $nt, $text, $holders ) ) . $trail; |
| 1742 | + } else { |
| 1743 | + $s .= $prefix . $trail; |
1742 | 1744 | } |
1743 | 1745 | $this->mOutput->addImage( $nt->getDBkey() ); |
1744 | 1746 | wfProfileOut( __METHOD__."-image" ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -729,6 +729,7 @@ |
730 | 730 | * Fixed bug involving unclosed "-{" markup in the language converter |
731 | 731 | * (bug 21870) No longer include Google logo from an external server on wiki error. |
732 | 732 | * (bug 22181) Do not truncate if the ellipsis actually make the string longer |
| 733 | +* (bug 16039) Text disappearing after a bad image |
733 | 734 | |
734 | 735 | == API changes in 1.16 == |
735 | 736 | |