summaryrefslogtreecommitdiff
path: root/modules/info
diff options
context:
space:
mode:
Diffstat (limited to 'modules/info')
-rw-r--r--modules/info/helpers/info_installer.php24
-rw-r--r--modules/info/helpers/info_theme.php6
-rw-r--r--modules/info/views/info_block.html.php14
3 files changed, 11 insertions, 33 deletions
diff --git a/modules/info/helpers/info_installer.php b/modules/info/helpers/info_installer.php
deleted file mode 100644
index e3e78b90..00000000
--- a/modules/info/helpers/info_installer.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php defined("SYSPATH") or die("No direct script access.");
-/**
- * Gallery - a web based photo album viewer and editor
- * Copyright (C) 2000-2009 Bharat Mediratta
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or (at
- * your option) any later version.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
- */
-class info_installer {
- static function install() {
- module::set_version("info", 1);
- }
-}
diff --git a/modules/info/helpers/info_theme.php b/modules/info/helpers/info_theme.php
index 51378e54..4bf894ad 100644
--- a/modules/info/helpers/info_theme.php
+++ b/modules/info/helpers/info_theme.php
@@ -38,9 +38,11 @@ class info_theme_Core {
if ($item->owner) {
$results .= "<li>";
if ($item->owner->url) {
- $results .= t("By: %owner_name", array("owner_name" => "<a href=\"{$item->owner->url}\">{$item->owner->full_name}</a>"));
+ $results .= t("By: <a href=\"%owner_url\">%owner_name</a>",
+ array("owner_name" => $item->owner->display_name(),
+ "owner_url" => $item->owner->url));
} else {
- $results .= t("By: %owner_name", array("owner_name" => "{$item->owner->full_name}"));
+ $results .= t("By: %owner_name", array("owner_name" => $item->owner->display_name()));
}
$results .= "</li>";
}
diff --git a/modules/info/views/info_block.html.php b/modules/info/views/info_block.html.php
index 9f544376..d8f36984 100644
--- a/modules/info/views/info_block.html.php
+++ b/modules/info/views/info_block.html.php
@@ -2,18 +2,18 @@
<ul class="gMetadata">
<li>
<strong class="caption"><?= t("Title:") ?></strong>
- <?= p::purify($item->title) ?>
+ <?= html::purify($item->title) ?>
</li>
<? if ($item->description): ?>
<li>
<strong class="caption"><?= t("Description:") ?></strong>
- <?= nl2br(p::purify($item->description)) ?>
+ <?= nl2br(html::purify($item->description)) ?>
</li>
<? endif ?>
- <? if ($item->id != 1): ?>
+ <? if (!$item->is_album()): ?>
<li>
- <strong class="caption"><?= t("Folder name:") ?></strong>
- <?= p::clean($item->name) ?>
+ <strong class="caption"><?= t("File name:") ?></strong>
+ <?= html::clean($item->name) ?>
</li>
<? endif ?>
<? if ($item->captured): ?>
@@ -26,9 +26,9 @@
<li>
<strong class="caption"><?= t("Owner:") ?></strong>
<? if ($item->owner->url): ?>
- <a href="<?= $item->owner->url ?>"><?= p::clean($item->owner->full_name) ?></a>
+ <a href="<?= $item->owner->url ?>"><?= html::clean($item->owner->display_name()) ?></a>
<? else: ?>
- <?= p::clean($item->owner->name) ?>
+ <?= html::clean($item->owner->display_name()) ?>
<? endif ?>
</li>
<? endif ?>