summaryrefslogtreecommitdiff
path: root/modules/info/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'modules/info/helpers')
-rw-r--r--modules/info/helpers/info_installer.php24
-rw-r--r--modules/info/helpers/info_theme.php6
2 files changed, 4 insertions, 26 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>";
}