Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-11-04 23:49:23 +0300
committerJan Holesovsky <kendy@collabora.com>2015-11-04 23:49:23 +0300
commite6593def87b00f2ddbe15bad257a415493f187e1 (patch)
treed91dc73ed07967bd2f58fc378ee8fab23854ace9 /lib
parent37f61b405681767b6dcc2c115c71b653e3ee2527 (diff)
cloudsuite: Add buttons to create new spreadsheet and new presentation.
Diffstat (limited to 'lib')
-rw-r--r--lib/helper.php2
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;