From 930452aa6b93755003d4ce28143fccb4f23801b0 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 16 May 2009 04:32:00 +0000 Subject: Support renaming albums, photos and movies. Fixes ticket #278. --- core/helpers/item.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/helpers/item.php') diff --git a/core/helpers/item.php b/core/helpers/item.php index b051bb0e..bd54f2b1 100644 --- a/core/helpers/item.php +++ b/core/helpers/item.php @@ -72,4 +72,10 @@ class item_Core { $album->save(); graphics::generate($album); } + + static function validate_no_slashes($input) { + if (strpos($input->value, "/") !== false) { + $input->add_error("no_slashes", 1); + } + } } \ No newline at end of file -- cgit v1.2.3