summaryrefslogtreecommitdiff
path: root/core/helpers/item.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-05-16 04:32:00 +0000
committerBharat Mediratta <bharat@menalto.com>2009-05-16 04:32:00 +0000
commit930452aa6b93755003d4ce28143fccb4f23801b0 (patch)
treee0c6c39f70ccd9a04024a32e75fa313852ea8f4c /core/helpers/item.php
parent33f1187220404bca6597de5368048316ece5139a (diff)
Support renaming albums, photos and movies.
Fixes ticket #278.
Diffstat (limited to 'core/helpers/item.php')
-rw-r--r--core/helpers/item.php6
1 files changed, 6 insertions, 0 deletions
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