From f270618ee0672b6aba593d054b0453a353475abb Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 20 Mar 2004 01:18:19 +0000 Subject: [PATCH] Put section-edit-summary-title back into head branch for now. --- includes/EditPage.php | 6 ++++++ 1 file changed, 6 insertions(+) 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 ) { -- 2.20.1