[BUGFIX] RTE Spellcheck: PHP warning in SpellCheckingController 40/33240/2
authorStanislas Rolland <typo3@sjbr.ca>
Fri, 10 Oct 2014 01:55:38 +0000 (21:55 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Fri, 10 Oct 2014 01:57:34 +0000 (03:57 +0200)
PHP warning in raised in
SpellCheckingController::fixPersonalDictionaryCharacterSet.
If the file does not exist, there is no need to fix anything.

Releases: master, 6.2
Resolves: #62137
Change-Id: I9b15f5cb016ac9d309fb19ad6230a79b885b16f3
Reviewed-on: http://review.typo3.org/33239
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
(cherry picked from commit 767aa0f7b7025bf56ed5229d7acb0cae0c0f740f)
Reviewed-on: http://review.typo3.org/33240

typo3/sysext/rtehtmlarea/Classes/Controller/SpellCheckingController.php

index 93340f6..8f4892c 100644 (file)
@@ -467,8 +467,6 @@ var selectedDictionary = "' . $this->dictionary . '";
                                                }
                                        }
                                }
-                               $fileContent = implode(LF, $fileContent);
-                               file_put_contents($fileName, $fileContent);
                        }
                }
        }