Skip to content
Snippets Groups Projects

Hotline master

Merged Ghislain Loas requested to merge hotline-master into master
Compare and
+ 22
12
Preferences
Compare changes
Files
+ 6
5
@@ -16,7 +16,7 @@
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class Class_I18n {
@@ -205,11 +205,12 @@ return array(
* @param string $language
*/
protected function _createFileFor($language) {
if (file_exists($this->_getFilePathFor($language)))
return;
file_put_contents($this->_getFilePathFor($language), $this->_getEmptySerialization());
if (file_exists($this->_getFilePathFor($language))
&& (!is_writable($this->_getFilePathFor($language))))
return ;
file_put_contents($this->_getFilePathFor($language),
$this->_getEmptySerialization());
}
/**