summaryrefslogtreecommitdiffstats
path: root/paste/include/storage/FileStorage.php
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2009-12-11 03:55:30 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2009-12-11 03:55:30 +0100
commite1f7f69c1986f79464bc9d7d465ea8c5fcd4289e (patch)
tree79091165eaf1c74359ce51143a6f2805d2b32a3b /paste/include/storage/FileStorage.php
parent25d090f3acfbb099cca6979fb4faffc272358c84 (diff)
downloadrafb-nopaste-e1f7f69c1986f79464bc9d7d465ea8c5fcd4289e.tar.gz
rafb-nopaste-e1f7f69c1986f79464bc9d7d465ea8c5fcd4289e.tar.xz
rafb-nopaste-e1f7f69c1986f79464bc9d7d465ea8c5fcd4289e.zip
dessicion if store markuped text or plain text now at StorageEngines
Diffstat (limited to 'paste/include/storage/FileStorage.php')
-rw-r--r--paste/include/storage/FileStorage.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/paste/include/storage/FileStorage.php b/paste/include/storage/FileStorage.php
index 09b222f..77cf0af 100644
--- a/paste/include/storage/FileStorage.php
+++ b/paste/include/storage/FileStorage.php
@@ -42,10 +42,12 @@ class FileStorage extends StorageEngine
$this->storage_path = $path;
}
- public function setContent($content)
+ public function setContent($content, $language, $nick, $description)
{
global $config;
+ $content = PastifyText($content, $language, $description);
+
do {
$filename = sha1(date('r') . rand(1000, getrandmax()));
} while (file_exists(realpath($storage_path . '/' , $filename)));