svn: /web/doc-editor/trunk/php/ ExtJsController.php
[email protected] (Yannick Torres)
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <[email protected]> |
yannick Sat, 21 Nov 2009 12:04:31 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=291112
Log:
Fix bug in display modified file
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 2009-11-21 08:18:37 UTC (rev 291111)
+++ web/doc-editor/trunk/php/ExtJsController.php 2009-11-21 12:04:31 UTC (rev 291112)
@@ -327,6 +327,9 @@
? $this->getRequestVariable('readOriginal')
: false;
+ // ExtJs pass false as a string ; fix it
+ if( $readOriginal == "false" ) $readOriginal = false;
+
$t = explode('/', $FilePath);
$FileLang = array_shift($t);
$FilePath = implode('/', $t);