r34226 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34225‎ | r34226 | r34227 >
Date:19:41, 4 May 2008
Author:dale
Status:old
Tags:
Comment:
fix wpTextBox1 semantic property override
Modified paths:
  • /trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_Overlay.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_Overlay.php
@@ -548,7 +548,7 @@
549549 //@@todo update for other smw types:
550550 if($key=='smw_Spoken_By'){
551551 //update the request wpTextBox:
552 - $_REQUEST['wpTextbox1']="[[".$swmTitle->getText().':='.$val.']] '.
 552+ $wgRequest->data['wpTextbox1']="[[".$swmTitle->getText().':='.$val.']]'.
553553 trim($_REQUEST['wpTextbox1']);
554554 }
555555 }
@@ -566,12 +566,12 @@
567567 //$wgOut->addHTML($out);
568568 $mvTitle = new MV_Title($_REQUEST['title']);
569569
570 - $parserOutput = $this->parse_format_text($_REQUEST['wpTextbox1'], $mvTitle);
 570+ $parserOutput = $this->parse_format_text($wgRequest->data['wpTextbox1'], $mvTitle);
571571 $wgOut->addParserOutput($parserOutput);
572572 return $wgOut->getHTML() . '<div style="clear:both;"><hr></div>';
573573 }
574574
575 - if($editPageAjax->edit()==false){
 575+ if($editPageAjax->edit($wgRequest->data['wpTextbox1'])==false){
576576 if($mvd_id=='new'){
577577 //get context info to position timeline element:
578578 $rt = (isset($_REQUEST['wgTitle']))?$_REQUEST['wgTitle']:null;

Status & tagging log