summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbitweaver.org <bitweaver@users.sourceforge.net>2010-03-08 20:05:49 +0000
committerbitweaver.org <bitweaver@users.sourceforge.net>2010-03-08 20:05:49 +0000
commita849be283043ea9757c1398e55c0d813ba59a742 (patch)
treeb47c7840319d2151ac41f62fd3c49a271813fa46
parentaecd40b60f098761c39e67c266155e714de98f2e (diff)
downloadfisheye-a849be283043ea9757c1398e55c0d813ba59a742.tar.gz
fisheye-a849be283043ea9757c1398e55c0d813ba59a742.tar.bz2
fisheye-a849be283043ea9757c1398e55c0d813ba59a742.zip
shorten p_fisheye_download_gallery_archive to p_fisheye_download_gallery_arch to meet 30 char perm_name limit
-rw-r--r--admin/schema_inc.php2
-rw-r--r--templates/view_gallery.tpl2
-rw-r--r--view.php4
3 files changed, 4 insertions, 4 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index 38c1d2d..5f98dae 100644
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -86,7 +86,7 @@ $gBitInstaller->registerUserPermissions( FISHEYE_PKG_NAME, array(
array('p_fisheye_upload_nonimages', 'Can upload non_image files', 'editors', FISHEYE_PKG_NAME),
array('p_fisheye_change_thumb_size', 'Can set the thumbnail size for a gallery', 'editors', FISHEYE_PKG_NAME),
array('p_fisheye_create_public_gal', 'Can create public galleries any user can load images into', 'editors', FISHEYE_PKG_NAME),
- array('p_fisheye_download_gallery_archive',' Can download an archived copy of Fisheye gallery', 'basic', FISHEYE_PKG_NAME)
+ array('p_fisheye_download_gallery_arch',' Can download an archived copy of Fisheye gallery', 'basic', FISHEYE_PKG_NAME)
) );
if( defined( 'RSS_PKG_NAME' )) {
diff --git a/templates/view_gallery.tpl b/templates/view_gallery.tpl
index b5c8028..06ed4b0 100644
--- a/templates/view_gallery.tpl
+++ b/templates/view_gallery.tpl
@@ -5,7 +5,7 @@
<div class="floaticon">
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='icon' serviceHash=$gContent->mInfo}
{if $gContent->hasUpdatePermission()}
- {if $gBitUser->hasPermission( 'p_fisheye_download_gallery_archive' ) }
+ {if $gBitUser->hasPermission( 'p_fisheye_download_gallery_arch' ) }
<a title="{tr}Download Gallery{/tr}" href="{$smarty.server.REQUEST_URI}?download=1">{biticon ipackage="icons" iname="system-file-manager" iexplain="Download Gallery"}</a>
{/if}
<a title="{tr}Edit{/tr}" href="{$smarty.const.FISHEYE_PKG_URL}edit.php?gallery_id={$gContent->mGalleryId}">{biticon ipackage="icons" iname="document-properties" iexplain="Edit"}</a>
diff --git a/view.php b/view.php
index 67c53f7..7aeff10 100644
--- a/view.php
+++ b/view.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_fisheye/view.php,v 1.10 2010/02/08 21:27:22 wjames5 Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_fisheye/view.php,v 1.11 2010/03/08 20:05:49 bitweaver Exp $
* @package fisheye
* @subpackage functions
*/
@@ -42,7 +42,7 @@ if (!empty($_REQUEST['download'])){
//Checked against global users group assignment so that feature can be restricted on a group level. If content was checked, user would always
//have permission to do this.
$gContent->verifyUpdatePermission();
- $gBitSystem->verifyPermission('p_fisheye_download_gallery_archive');
+ $gBitSystem->verifyPermission('p_fisheye_download_gallery_arch');
$gContent->download();
}