This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Sequenzia/lib/Moebooru/TempfilePrefix.php
Parziphal cf9cba40b6 Fully enabled Inline Images.
A little detail: the "Add image" button was moved to a new table row, so it stands out more.
Known bugs/errors:
- When cropping an animated GIF inline (with a secondary JPG inline), although the images are correctly cropped, an empty error is displayed.
2013-12-31 14:22:59 -05:00

16 lines
316 B
PHP
Executable File

<?php
namespace Moebooru;
trait TempfilePrefix
{
public $tempfile_prefix;
public function tempfile_prefix()
{
if (!$this->tempfile_prefix) {
$this->tempfile_prefix = \Rails::publicPath() . '/data/temp-' . uniqid('tfp_');
}
return $this->tempfile_prefix;
}
}