aboutsummaryrefslogtreecommitdiffstats
path: root/include/plugin.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-25 16:03:46 -0700
committerfriendica <info@friendica.com>2012-06-25 16:03:46 -0700
commitb044cd922d389b5bb9367ce1004d00a711562cf9 (patch)
tree57cd333508e4bb43b923fb74914b3d50904d4536 /include/plugin.php
parent89ad19ce01f396ca71f4a991699871b26cf90b29 (diff)
downloadvolse-hubzilla-b044cd922d389b5bb9367ce1004d00a711562cf9.tar.gz
volse-hubzilla-b044cd922d389b5bb9367ce1004d00a711562cf9.tar.bz2
volse-hubzilla-b044cd922d389b5bb9367ce1004d00a711562cf9.zip
typos in bbcode, add service class restrictions to jot uploads
Diffstat (limited to 'include/plugin.php')
-rw-r--r--include/plugin.php21
1 files changed, 12 insertions, 9 deletions
diff --git a/include/plugin.php b/include/plugin.php
index d762e8717..ffa562273 100644
--- a/include/plugin.php
+++ b/include/plugin.php
@@ -380,20 +380,23 @@ function service_class_fetch($uid,$property) {
}
-function upgrade_link() {
+function upgrade_link($bbcode = false) {
$l = get_config('service_class','upgrade_link');
- $t = sprintf('<a href="%s">' . t('Click here to upgrade.') . '</div>', $l);
- if($l)
- return $t;
- return '';
+ if(! $l)
+ return '';
+ if($bbcode)
+ $t = sprintf('[url=%s]' . t('Click here to upgrade.') . '[/url]', $l);
+ else
+ $t = sprintf('<a href="%s">' . t('Click here to upgrade.') . '</div>', $l);
+ return $t;
}
-function upgrade_message() {
- $x = upgrade_link();
+function upgrade_message($bbcode = false) {
+ $x = upgrade_link($bbcode);
return t('This action exceeds the limits set by your subscription plan.') . (($x) ? ' ' . $x : '') ;
}
-function upgrade_bool_message() {
- $x = upgrade_link();
+function upgrade_bool_message($bbcode = false) {
+ $x = upgrade_link($bbcode);
return t('This action is not available under your subscription plan.') . (($x) ? ' ' . $x : '') ;
}