diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-11-04 23:49:23 +0300 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-11-04 23:49:23 +0300 |
commit | e6593def87b00f2ddbe15bad257a415493f187e1 (patch) | |
tree | d91dc73ed07967bd2f58fc378ee8fab23854ace9 /lib | |
parent | 37f61b405681767b6dcc2c115c71b653e3ee2527 (diff) |
cloudsuite: Add buttons to create new spreadsheet and new presentation.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helper.php b/lib/helper.php index 2f02be51..e67d32ad 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -21,7 +21,7 @@ class Helper { while ($view->file_exists($path)){ $fileNum += 1; - $path = preg_replace('/(\.odt|' . $prepend . '\(\d+\)\.odt)$/', $prepend . '(' . $fileNum . ').odt', $path); + $path = preg_replace('/(\.|' . $prepend . '\(\d+\)\.)([^.]*)$/', $prepend . '(' . $fileNum . ').$2', $path); }; return $path; |