From 371f4b48742e78bf4337c30c1e7aeb8ff6ec4eef Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 18 Jan 2015 01:43:30 +0100 Subject: [PATCH] A bit more readable code. --- lib/action.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/action.php b/lib/action.php index f3a125d3b5..fb71d3073f 100644 --- a/lib/action.php +++ b/lib/action.php @@ -1167,11 +1167,9 @@ class Action extends HTMLOutputter // lawsuit // TRANS: license message in footer. // TRANS: %1$s is the site name, %2$s is a link to the license URL, with a licence name set in configuration. $notice = _('All %1$s content and data are available under the %2$s license.'); - $link = "" . - htmlspecialchars(common_config('license', 'title')) . - ""; + $link = sprintf('%2$s', + htmlspecialchars(common_config('license', 'url')), + htmlspecialchars(common_config('license', 'title'))); $this->raw(sprintf(htmlspecialchars($notice), htmlspecialchars(common_config('site', 'name')), $link));