Mark an internal helper method as private.
This commit is contained in:
parent
ea0fd6e1fe
commit
4a604d1d4c
@ -20,10 +20,10 @@
|
||||
class keeporiginal_event_Core {
|
||||
static function graphics_rotate($input_file, $output_file, $options) {
|
||||
// Make a copy of the original fullsized image before rotating it.
|
||||
self::preserve($input_file);
|
||||
self::_preserve($input_file);
|
||||
}
|
||||
|
||||
static function preserve($input_file) {
|
||||
static function _preserve($input_file) {
|
||||
// If $input_file is located in VARPATH/albums/ then assume its a fullsize photo.
|
||||
if (strncmp($input_file, VARPATH . "albums/", strlen(VARPATH . "albums/")) == 0) {
|
||||
// Figure out where the original copy should be stashed at.
|
||||
@ -76,7 +76,7 @@ class keeporiginal_event_Core {
|
||||
if ($old->is_photo() || $old->is_album()) {
|
||||
$data_file = $new->get_data_file();
|
||||
if (isset($data_file)) {
|
||||
self::preserve($old->file_path());
|
||||
self::_preserve($old->file_path());
|
||||
}
|
||||
if ($old->file_path() != $new->file_path()) {
|
||||
$old_original = VARPATH . "original/" . str_replace(VARPATH . "albums/", "", $old->file_path());
|
||||
|
Reference in New Issue
Block a user