summaryrefslogtreecommitdiff
path: root/modules/gallery
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-07-25 19:33:11 -0600
committerChad Kieffer <ckieffer@gmail.com>2009-07-25 19:33:11 -0600
commit8f9b5dcf83ffde65f45d9eb4f103407103764dfa (patch)
treea2f5faa8bb96ef60c3bc2135b7a11241ebd3b26d /modules/gallery
parenteca46d76a7832f771d377edb3939ea1aded2fac9 (diff)
parentf8516b55d2f0fcf145bb6c27475d633e8a89ccf8 (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery')
-rw-r--r--modules/gallery/helpers/album.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/helpers/album.php b/modules/gallery/helpers/album.php
index 0263e0e1..f146bfb3 100644
--- a/modules/gallery/helpers/album.php
+++ b/modules/gallery/helpers/album.php
@@ -104,6 +104,7 @@ class album_Core {
$group->textarea("description")->label(t("Description"))->value($parent->description);
if ($parent->id != 1) {
$group->input("dirname")->label(t("Directory Name"))->value($parent->name)
+ ->rules("required")
->callback("item::validate_no_slashes")
->error_messages("no_slashes", t("The directory name can't contain a \"/\""))
->callback("item::validate_no_trailing_period")