Index: trunk/extensions/FileAttach/FileAttach.php |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | * |
11 | 11 | */ |
12 | 12 | if ( !defined( 'MEDIAWIKI' ) ) die( 'Not an entry point.' ); |
13 | | -define( 'FILEATTCH_VERSION', '1.0.0, 2010-04-14' ); |
| 13 | +define( 'FILEATTCH_VERSION', '1.0.1, 2010-04-16' ); |
14 | 14 | |
15 | 15 | $wgAttachmentHeading = 'Attachments'; |
16 | 16 | |
— | — | @@ -50,7 +50,7 @@ |
51 | 51 | if( is_array( $sections ) && count( $sections ) > 0 ) { |
52 | 52 | $last = $sections[count( $sections ) - 1]; |
53 | 53 | if( $last['level'] == 2 && $last['anchor'] == $wgAttachmentHeading ) { |
54 | | - preg_match( "|<h2>.+?$wgAttachmentHeading.+?</h2>\s*<ul>(.+?)</ul>|s", $out->mBodytext, $files ); |
| 54 | + preg_match( "|.+<h2>.+?$wgAttachmentHeading.+?</h2>\s*<ul>(.+?)</ul>|s", $out->mBodytext, $files ); |
55 | 55 | preg_match_all( "|<li>\s*<a.+?>(.+?)</a>\s*</li>|", $files[1], $files ); |
56 | 56 | $html = "\n\n<!-- files attachments rendered by Extension:FileAttach -->\n<div class=\"file-attachments\" style=\"width:85%\">\n"; |
57 | 57 | foreach( $files[1] as $file ) { |