From ca0d965a3d7b80eaa54eb8b080dd3f7c5aab2454 Mon Sep 17 00:00:00 2001 From: vargenau Date: Tue, 13 Oct 2009 16:29:32 +0000 Subject: [PATCH] Image button now allows also video files git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@7212 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/EditToolbar.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/EditToolbar.php b/lib/EditToolbar.php index 86a2ebafb..1611a3c7b 100644 --- a/lib/EditToolbar.php +++ b/lib/EditToolbar.php @@ -416,8 +416,8 @@ msg_repl_close = '"._("Close")."' if (!empty($images)) { $image_js = ''; foreach ($images as $image) { - // Select only files ending in ".png", ".gif", ".jpg", ".jpeg" - if (is_image($image)) { + // Select only image and video files + if (is_image($image) or is_video($image)) { $image_js .= ",['$image','{{".$image."}}']"; } } @@ -425,10 +425,10 @@ msg_repl_close = '"._("Close")."' $more_buttons = HTML::img(array('class'=>"toolbar", 'id' => 'tb-images', 'src' => $WikiTheme->getImageURL("ed_image.png"), - 'title'=>_("AddImage"), - 'alt'=>_("AddImage"), + 'title'=>_("Add Image or Video"), + 'alt'=>_("Add Image or Video"), 'onclick'=>"showPulldown('". - _("Insert Image (double-click)") + _("Insert Image or Video (double-click)") ."',[".$image_js."],'" ._("Insert")."','" ._("Close")."','tb-images')")); -- 2.45.0