aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2012-03-18 01:02:30 +0100
committerzottel <github@zottel.net>2012-03-18 01:02:30 +0100
commitdf78c9be0bab909dfa8cf196f7aaa4ea3423be8c (patch)
tree2dafebccd7de10089eef3dd1356a5760a280b590 /mod
parent3bbd82abb3b33f041ec35b85de5bddcd79ed5471 (diff)
parent26258bca77aa3385dacf36874f7f5603eaef9a6b (diff)
downloadvolse-hubzilla-df78c9be0bab909dfa8cf196f7aaa4ea3423be8c.tar.gz
volse-hubzilla-df78c9be0bab909dfa8cf196f7aaa4ea3423be8c.tar.bz2
volse-hubzilla-df78c9be0bab909dfa8cf196f7aaa4ea3423be8c.zip
Merge remote branch 'upstream/master'
Diffstat (limited to 'mod')
-rwxr-xr-xmod/admin.php4
-rwxr-xr-xmod/item.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/mod/admin.php b/mod/admin.php
index 88ccad6d3..a64b26903 100755
--- a/mod/admin.php
+++ b/mod/admin.php
@@ -308,7 +308,7 @@ function admin_page_site(&$a) {
SSL_POLICY_FULL => t("Force all links to use SSL"),
SSL_POLICY_SELFSIGN => t("Self-signed certificate, use SSL for local links only (discouraged)")
);
-
+
$t = get_markup_template("admin_site.tpl");
return replace_macros($t, array(
'$title' => t('Administration'),
@@ -325,7 +325,7 @@ function admin_page_site(&$a) {
'$banner' => array('banner', t("Banner/Logo"), $banner, ""),
'$language' => array('language', t("System language"), get_config('system','language'), "", $lang_choices),
'$theme' => array('theme', t("System theme"), get_config('system','theme'), t("Default system theme - may be over-ridden by user profiles"), $theme_choices),
- '$ssl_policy' => array('ssl_policy', t("SSL link policy"), get_config('system','ssl_policy'), t("Determines whether generated links should be forced to use SSL"), $ssl_choices),
+ '$ssl_policy' => array('ssl_policy', t("SSL link policy"), (string) intval(get_config('system','ssl_policy')), t("Determines whether generated links should be forced to use SSL"), $ssl_choices),
'$maximagesize' => array('maximagesize', t("Maximum image size"), get_config('system','maximagesize'), t("Maximum size in bytes of uploaded images. Default is 0, which means no limits.")),
'$register_policy' => array('register_policy', t("Register policy"), $a->config['register_policy'], "", $register_choices),
diff --git a/mod/item.php b/mod/item.php
index 07b4bfef7..fe570075f 100755
--- a/mod/item.php
+++ b/mod/item.php
@@ -857,7 +857,7 @@ function handle_tag($a, &$body, &$inform, &$str_tags, $profile_uid, $tag) {
if(strpos($tag,'@') === 0) {
//is it already replaced?
if(strpos($tag,'[url='))
- continue;
+ return;
$stat = false;
//get the person's name
$name = substr($tag,1);