From: Erik Moeller Date: Mon, 22 Mar 2004 04:38:47 +0000 (+0000) Subject: change auto-summary format from (foo) to =foo= X-Git-Tag: 1.3.0beta1~752 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=515da873c3330ee7c5378f5b8c8c7cd650e44469;p=lhc%2Fweb%2Fwiklou.git change auto-summary format from (foo) to =foo= --- 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);