cvs: doc-editor /php ExtJsController.php class.php
| From: | Yannick Torres | Date: | Wed, 15 Apr 2009 09:55:29 +0000 |
| Subject: | cvs: doc-editor /php ExtJsController.php class.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-3729@lists.php.net to get a copy of this message | ||
yannick Wed Apr 15 09:55:29 2009 UTC
Modified files:
/doc-editor/php class.php ExtJsController.php
Log:
fix error check updater
http://cvs.php.net/viewvc.cgi/doc-editor/php/class.php?r1=1.26&r2=1.27&diff_format=u
Index: doc-editor/php/class.php
diff -u doc-editor/php/class.php:1.26 doc-editor/php/class.php:1.27
--- doc-editor/php/class.php:1.26 Fri Apr 10 21:08:07 2009
+++ doc-editor/php/class.php Wed Apr 15 09:55:29 2009
@@ -2009,7 +2009,7 @@
}
}
- /** NEW
+ /**
* Update error's informations about a file after his commit.
* @param $anode An array of files.
* @param $action Can be 'commit' or not.
@@ -2021,9 +2021,13 @@
for ($i = 0; $i < count($anode); $i++) {
- $FilePath = $anode[$i][0];
+ $t = explode("/", $anode[$i][0]);
+
+ $FileLang = $t[0];
+ array_shift($t);
+
+ $FilePath = implode("/", $t);
$FileName = $anode[$i][1];
- $FileLang = $anode[$i][2];
// Remove all row in errorfiles tables
$s = 'DELETE FROM errorfiles WHERE lang=\''.$FileLang.'\' AND
path=\''.$FilePath.'\' AND name=\''.$FileName.'\'';
http://cvs.php.net/viewvc.cgi/doc-editor/php/ExtJsController.php?r1=1.9&r2=1.10&diff_format=u
Index: doc-editor/php/ExtJsController.php
diff -u doc-editor/php/ExtJsController.php:1.9 doc-editor/php/ExtJsController.php:1.10
--- doc-editor/php/ExtJsController.php:1.9 Thu Apr 2 05:09:49 2009
+++ doc-editor/php/ExtJsController.php Wed Apr 15 09:55:29 2009
@@ -342,7 +342,7 @@
//$error = $this->phpDoc->tools_error_check_all($fileContent, $en_content);
// Update DB with this new Error (if any)
- $anode[0] = array( 0 => $FilePath, 1 => $FileName, 2 => $FileLang);
+ $anode[0] = array( 0 => $FileLang.$FilePath, 1 => $FileName);
$r = $this->phpDoc->updateFilesError($anode, 'nocommit', $FileContent,
$en_content);
return $this->getResponse(array('success' => true, 'error' =>
$r['state'], 'error_first' => $r['first']));