dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
830b358
)
Put section-edit-summary-title back into head branch for now.
author
Brion Vibber
<brion@users.mediawiki.org>
Sat, 20 Mar 2004 01:18:19 +0000
(
01:18
+0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Sat, 20 Mar 2004 01:18:19 +0000
(
01:18
+0000)
includes/EditPage.php
patch
|
blob
|
history
diff --git
a/includes/EditPage.php
b/includes/EditPage.php
index
c659e6e
..
a568419
100644
(file)
--- a/
includes/EditPage.php
+++ b/
includes/EditPage.php
@@
-221,6
+221,12
@@
class EditPage {
} else {
$s.=wfMsg("sectionedit");
}
+ if(!$this->preview) {
+ $sectitle=preg_match("/^=+(.*?)=+/mi",
+ $this->textbox1,
+ $matches);
+ if($matches[1]) { $this->summary = "(".trim($matches[1]).")"; }
+ }
}
$wgOut->setPageTitle( $s );
if ( $this->oldid ) {