From eff4faea7f3c95440f02ea45d0be4f67236e2bf3 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 3 Nov 2010 22:13:10 +0000 Subject: Fixes #1320: Bundled mods use elgg_echo()'s internal string substitution. git-svn-id: http://code.elgg.org/elgg/trunk@7229 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/file/views/default/object/file.php | 84 +++++++++++----------- .../views/default/river/object/file/create.php | 6 +- 2 files changed, 45 insertions(+), 45 deletions(-) (limited to 'mod/file/views') diff --git a/mod/file/views/default/object/file.php b/mod/file/views/default/object/file.php index 5858a1f1e..3da9567a5 100644 --- a/mod/file/views/default/object/file.php +++ b/mod/file/views/default/object/file.php @@ -2,14 +2,14 @@ /** * Elgg file browser. * File renderer. - * + * * @package ElggFile */ global $CONFIG; - + $file = $vars['entity']; - + $file_guid = $file->getGUID(); $tags = $file->tags; $title = $file->title; @@ -17,13 +17,13 @@ $owner = $vars['entity']->getOwnerEntity(); $friendlytime = elgg_view_friendly_time($vars['entity']->time_created); $mime = $file->mimetype; - + if (!$title) { $title = elgg_echo('untitled'); } - + if (elgg_get_context() == "search") { // Start search listing version - + if (get_input('search_viewtype') == "gallery") { echo ""; - + } else { - + $info = "

getURL()}\">{$title}

"; $info .= "

username}\">{$owner->name} {$friendlytime}"; $numcomments = elgg_count_comments($file); if ($numcomments) - $info .= ", getURL()}\">" . sprintf(elgg_echo("comments")) . " (" . $numcomments . ")"; + $info .= ", getURL()}\">" . elgg_echo("comments") . " (" . $numcomments . ")"; $info .= "

"; $icon = "getURL()}\">" . elgg_view("file/icon", array("mimetype" => $mime, 'thumbnail' => $file->thumbnail, 'file_guid' => $file_guid, 'size' => 'small')) . ""; - + echo elgg_view_listing($icon, $info); - + } - + } else { // Start main version - + ?>
- +
guid . "&search_viewtype=gallery"; ?> - +

$owner, 'size' => 'tiny')); - + ?>

name; ?>

- +
- +
$desc)); ?>
- ".elgg_view('file/specialcontent/' . $mime, $vars)."
"; } else if (elgg_view_exists("file/specialcontent/" . substr($mime,0,strpos($mime,'/')) . "/default")) { echo "
".elgg_view("file/specialcontent/" . substr($mime,0,strpos($mime,'/')) . "/default", $vars)."
"; } - + ?> - +

- + canEdit()) { @@ -147,21 +147,21 @@

-   - mod/file/edit.php?file_guid=getGUID(); ?>">  + "action/file/delete?file=" . $file->getGUID(), 'text' => elgg_echo("delete"), 'confirm' => elgg_echo("file:delete:confirm"), 'is_action' => true, - - )); + + )); ?>

- @@ -171,9 +171,9 @@ diff --git a/mod/file/views/default/river/object/file/create.php b/mod/file/views/default/river/object/file/create.php index b0e2ca07b..b9b5c4299 100644 --- a/mod/file/views/default/river/object/file/create.php +++ b/mod/file/views/default/river/object/file/create.php @@ -4,14 +4,14 @@ $object = get_entity($vars['item']->object_guid); $url = $object->getURL(); $container = get_entity($object->container_guid); - + $url = "getURL()}\">{$performed_by->name}"; - $string = sprintf(elgg_echo("file:river:created"),$url) . " " . elgg_echo("file:river:item"); + $string = elgg_echo("file:river:created", array($url)) . " " . elgg_echo("file:river:item"); $string .= " getURL() . "\">" . $object->title . ""; if ($container && $container instanceof ElggGroup) { $string .= ' ' . elgg_echo('groups:river:togroup') . " getURL() ."\">". $container->name . ""; } echo $string; - + ?> \ No newline at end of file -- cgit v1.2.3