svn: /web/doc-editor/trunk/php/ ExtJsController.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Mon, 19 Sep 2011 05:25:49 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=316963

Log:
When saving, check error against the original content, no against the modified content (e.g. .new)

Changed paths:
    U   web/doc-editor/trunk/php/ExtJsController.php

Modified: web/doc-editor/trunk/php/ExtJsController.php
===================================================================
--- web/doc-editor/trunk/php/ExtJsController.php	2011-09-19 05:15:49 UTC (rev 316962)
+++ web/doc-editor/trunk/php/ExtJsController.php	2011-09-19 05:25:49 UTC (rev 316963)
@@ -865,7 +865,8 @@

         // Get EN content to check error with
         $en_file    = new File('en', $FilePath.$FileName);
-        $en_content = $en_file->read();
+        $readOriginal = true;
+        $en_content = $en_file->read($readOriginal);

         // Update DB with this new Error (if any)
         $info = $file->getInfo($FileContent);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.