summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--download.php (renamed from mime_download.php)2
-rw-r--r--plugins/mime.default.php8
-rw-r--r--templates/edit_storage_list.tpl2
-rw-r--r--view.php (renamed from mime_view.php)2
4 files changed, 7 insertions, 7 deletions
diff --git a/mime_download.php b/download.php
index 1c92151..c5bf502 100644
--- a/mime_download.php
+++ b/download.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_liberty/Attic/mime_download.php,v 1.2 2008/05/31 10:26:56 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_liberty/Attic/download.php,v 1.1 2008/06/10 18:33:35 squareing Exp $
*
* @author xing <xing@synapse.plus.com>
* @package treasury
diff --git a/plugins/mime.default.php b/plugins/mime.default.php
index 79abd95..49f7a99 100644
--- a/plugins/mime.default.php
+++ b/plugins/mime.default.php
@@ -1,9 +1,9 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_liberty/plugins/mime.default.php,v 1.16 2008/06/08 16:42:34 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_liberty/plugins/mime.default.php,v 1.17 2008/06/10 18:33:36 squareing Exp $
*
* @author xing <xing@synapse.plus.com>
- * @version $Revision: 1.16 $
+ * @version $Revision: 1.17 $
* created Thursday May 08, 2008
* @package liberty
* @subpackage liberty_mime_handler
@@ -221,7 +221,7 @@ function mime_default_load( $pFileHash, &$pPrefs ) {
$ret['thumbnail_is_mime'] = TRUE;
}
$ret['filename'] = basename( $row['storage_path'] );
- $ret['display_url'] = LIBERTY_PKG_URL."mime_view.php?attachment_id=".$row['attachment_id'];
+ $ret['display_url'] = LIBERTY_PKG_URL."view.php?attachment_id=".$row['attachment_id'];
$ret['mime_type'] = $row['mime_type'];
$ret['file_size'] = $row['file_size'];
$ret['attachment_id'] = $row['attachment_id'];
@@ -234,7 +234,7 @@ function mime_default_load( $pFileHash, &$pPrefs ) {
$ret['source_file'] = BIT_ROOT_PATH.$row['storage_path'];
$ret['source_url'] = str_replace( "//", "/", BIT_ROOT_URL.path_to_url( $row['storage_path'] ));
$ret['last_modified'] = filemtime( $ret['source_file'] );
- $ret['download_url'] = LIBERTY_PKG_URL."mime_download.php?attachment_id=".$row['attachment_id'];
+ $ret['download_url'] = LIBERTY_PKG_URL."download.php?attachment_id=".$row['attachment_id'];
}
if( $gLibertySystem->isPluginActive( 'dataattachment' )) {
diff --git a/templates/edit_storage_list.tpl b/templates/edit_storage_list.tpl
index cb09cf2..02d47f0 100644
--- a/templates/edit_storage_list.tpl
+++ b/templates/edit_storage_list.tpl
@@ -61,7 +61,7 @@
</a>
{else}
{if $storage.is_mime}
- <a href="{$smarty.const.LIBERTY_PKG_URL}mime_view.php?attachment_id={$attachmentId}">{biticon ipackage="icons" iname="document-open" iexplain="View"}</a>
+ <a href="{$smarty.const.LIBERTY_PKG_URL}view.php?attachment_id={$attachmentId}">{biticon ipackage="icons" iname="document-open" iexplain="View"}</a>
{/if}
<a href="{$smarty.server.PHP_SELF}?{$smarty.capture.urlArgs}&amp;deleteAttachment={$attachmentId}">{biticon ipackage="icons" iname="edit-delete" iexplain="Delete"}</a>
{/if}
diff --git a/mime_view.php b/view.php
index c14d507..01fb141 100644
--- a/mime_view.php
+++ b/view.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_liberty/Attic/mime_view.php,v 1.4 2008/05/29 09:04:35 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_liberty/Attic/view.php,v 1.1 2008/06/10 18:33:36 squareing Exp $
*
* @author xing <xing@synapse.plus.com>
* @package treasury