diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2008-06-14 09:04:15 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2008-06-14 09:04:15 +0000 |
| commit | 670c38c78812285bcd5eca02540ea74f66a96b0b (patch) | |
| tree | fdbe214502e9a8334ef9f97b557e8eee82a6784f /templates | |
| parent | e9978c5c25eed480b222f17aeb4892d3f64ab610 (diff) | |
| download | liberty-670c38c78812285bcd5eca02540ea74f66a96b0b.tar.gz liberty-670c38c78812285bcd5eca02540ea74f66a96b0b.tar.bz2 liberty-670c38c78812285bcd5eca02540ea74f66a96b0b.zip | |
move getMimeTemplate to new home in LibertySystem and add new method to fetch all templates of a given type
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/edit_storage_list.tpl | 2 | ||||
| -rw-r--r-- | templates/storage_thumbs.tpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/edit_storage_list.tpl b/templates/edit_storage_list.tpl index 8a7d4f1..d65b85c 100644 --- a/templates/edit_storage_list.tpl +++ b/templates/edit_storage_list.tpl @@ -30,7 +30,7 @@ <tr class="{cycle values="odd,even"}"> <td style="text-align:center;"> {if $storage.is_mime} - {include file=$gContent->getMimeTemplate('inline',$storage.attachment_plugin_guid) area=$area thumbsize=small preferences=$gContent->mStoragePrefs.$attachmentId attachment=$storage} + {include file=$gLibertySystem->getMimeTemplate('inline',$storage.attachment_plugin_guid) area=$area thumbsize=small preferences=$gContent->mStoragePrefs.$attachmentId attachment=$storage} {else} {jspopup href=$storage.source_url title=$storage.title|default:$storage.filename notra=1 img=$storage.thumbnail_url.avatar} <br />{$storage.filename} <span class="date">{$storage.file_size|display_bytes}</span> diff --git a/templates/storage_thumbs.tpl b/templates/storage_thumbs.tpl index f704f8c..815a382 100644 --- a/templates/storage_thumbs.tpl +++ b/templates/storage_thumbs.tpl @@ -12,7 +12,7 @@ {foreach from=$gContent->mStorage item=attachment key=id} {* TODO: this should not be necessary anymore as soon as we've faded out old attachment plugins *} {if $attachment.is_mime} - {include file=$gContent->getMimeTemplate('inline',$attachment.attachment_plugin_guid) area=storage_thumbs preferences=$gContent->mStoragePrefs.$id} + {include file=$gLibertySystem->getMimeTemplate('inline',$attachment.attachment_plugin_guid) area=storage_thumbs preferences=$gContent->mStoragePrefs.$id} {else} {* TODO: get rid of old plugin system *} {capture name="size"}{$attachment.file_size|display_bytes}{/capture} |
