From 515da873c3330ee7c5378f5b8c8c7cd650e44469 Mon Sep 17 00:00:00 2001 From: Erik Moeller Date: Mon, 22 Mar 2004 04:38:47 +0000 Subject: [PATCH] change auto-summary format from (foo) to =foo= --- includes/EditPage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index a51d183fb4..556cf9831e 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -139,8 +139,8 @@ class EditPage { $wgOut->readOnlyPage(); return; } - # If article is new, insert it. + # If article is new, insert it. $aid = $this->mTitle->getArticleID(); if ( 0 == $aid ) { # Don't save a new article if it's blank. @@ -226,7 +226,7 @@ class EditPage { $sectitle=preg_match("/^=+(.*?)=+/mi", $this->textbox1, $matches); - if($matches[1]) { $this->summary = "(".trim($matches[1]).")"; } + if($matches[1]) { $this->summary = "=". trim($matches[1])."= "; } } } $wgOut->setPageTitle( $s ); @@ -465,7 +465,7 @@ htmlspecialchars( $wgLang->recodeForEdit( $this->textbox1 ) ) . /* private */ function mergeChangesInto( &$text ){ $oldDate = $this->edittime; - $res = wfQuery("SELECT cur_text FROM cur WHERE cur_id=" . + $res = wfQuery("SELECT cur_text FROM cur WHERE cur_id=" . $this->mTitle->getArticleID() . " FOR UPDATE", DB_WRITE); $obj = wfFetchObject($res); -- 2.20.1