Permalink
Browse files

Make the varible for the profile name more descriptive and clean the …

…label
  • Loading branch information...
1 parent 75aec29 commit c51fe9682075c961972c344f4888a4adceabe3eb @talmdal talmdal committed Jan 28, 2010
@@ -404,14 +404,14 @@ static function show_user_profile($data) {
if (!$data->display_all) {
$fields = array("name" => t("Name"), "full_name" => t("Full name"), "url" => "Web site");
}
- $v->fields = array();
+ $v->user_profile_data = array();
foreach ($fields as $field => $label) {
if (!empty($data->user->$field)) {
$value = $data->user->$field;
if ($field == "locale") {
$value = locales::display_name($value);
}
- $v->fields[(string) $label] = $value;
+ $v->user_profile_data[(string) $label] = $value;
}
}
$data->content[] = (object) array("title" => t("User information"), "view" => $v);
@@ -224,7 +224,6 @@ modules/gallery/views/upgrader.html.php 102 DIRTY_ATTR $don
modules/gallery/views/user_languages_block.html.php 2 DIRTY form::dropdown("g-select-session-locale",$installed_locales,$selected)
modules/gallery/views/user_profile.html.php 35 DIRTY_ATTR $user->avatar_url(40,$theme->url(,true))
modules/gallery/views/user_profile.html.php 46 DIRTY $info->view
-modules/gallery/views/user_profile_info.html.php 5 DIRTY $field
modules/image_block/views/image_block_block.html.php 3 DIRTY_JS $item->url()
modules/image_block/views/image_block_block.html.php 4 DIRTY $item->thumb_img(array("class"=>"g-thumbnail"))
modules/info/views/info_block.html.php 22 DIRTY date("M j, Y H:i:s",$item->captured)
@@ -1,8 +1,8 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<table>
- <? foreach ($fields as $field => $value): ?>
+ <? foreach ($user_profile_data as $label => $value): ?>
<tr>
- <td><?= $field ?></td>
+ <td><?= html::clean($label) ?></td>
<td><?= html::purify($value) ?></td>
</tr>
<? endforeach ?>

0 comments on commit c51fe96

Please sign in to comment.