From: Brion Vibber Date: Sat, 20 Mar 2004 01:18:19 +0000 (+0000) Subject: Put section-edit-summary-title back into head branch for now. X-Git-Tag: 1.3.0beta1~770 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/rappels.php?a=commitdiff_plain;h=f270618ee0672b6aba593d054b0453a353475abb;p=lhc%2Fweb%2Fwiklou.git Put section-edit-summary-title back into head branch for now. --- diff --git a/includes/EditPage.php b/includes/EditPage.php index c659e6e55c..a56841950e 100644 --- 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 ) {