git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
page: capture multiline titles in article contents
[minimedit.git]
/
page.php
diff --git
a/page.php
b/page.php
index 932e72943b4f8b1ee1d35c7f512407141d481b32..4bea9c6d179369efd58a88ef2c32b2dd3028224c 100644
(file)
--- a/
page.php
+++ b/
page.php
@@
-55,7
+55,7
@@
function getoutput($blocks = [])
# keep either login or logout parts depending on user level
global $User;
$hideclass = empty($User) ? 'login' : 'logout';
# keep either login or logout parts depending on user level
global $User;
$hideclass = empty($User) ? 'login' : 'logout';
- $doc = preg_replace('{\s*<(
p|li|span
) class="'.$hideclass.'">.*?</\1>}s', '', $doc);
+ $doc = preg_replace('{\s*<(
[a-z]+
) class="'.$hideclass.'">.*?</\1>}s', '', $doc);
return preg_replace_callback(
'{ (?<! <!--BLOCK: ) \[\[ ([^] ]+) ([^]]*) \]\] }x',
return preg_replace_callback(
'{ (?<! <!--BLOCK: ) \[\[ ([^] ]+) ([^]]*) \]\] }x',