summaryrefslogtreecommitdiff
path: root/inc/actions.php
diff options
context:
space:
mode:
authorAndreas Gohr <gohr@cosmocode.de>2009-11-23 16:18:13 +0100
committerAdrian Lang <lang@cosmocode.de>2010-01-20 10:53:22 +0100
commit15741132b4a2b6f006441f4c11e021062c168af8 (patch)
tree83a02ab25426a1fb3184ec6f39566a21d73cb3b3 /inc/actions.php
parent8881fcc99a05f20da8fdd0f1c52f801fd84a8bb7 (diff)
downloadrpg-15741132b4a2b6f006441f4c11e021062c168af8.tar.gz
rpg-15741132b4a2b6f006441f4c11e021062c168af8.tar.bz2
Some language changes in subscription management
Ignore-this: 9d6c368419814c7b8cb94f778377ede7 A few language strings were dropped, others updated or added darcs-hash:20091123151813-6e07b-4d01fe03fa2c3bd5944bc05abdd05a24fb79c186.gz
Diffstat (limited to 'inc/actions.php')
-rw-r--r--inc/actions.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/inc/actions.php b/inc/actions.php
index 222ac89dd..32dde008e 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -609,7 +609,7 @@ function subscription_handle_post($params) {
// Get and validate parameters.
if (!isset($params['target'])) {
- throw new Exception($lang['subscr_no_target']);
+ throw new Exception('no subscription target given');
}
$target = $params['target'];
$valid_styles = array('every', 'digest');
@@ -618,9 +618,9 @@ function subscription_handle_post($params) {
$valid_styles[] = 'list';
}
$style = valid_input_set('style', $valid_styles, $params,
- $lang['subscr_invalid_style']);
+ 'invalid subscription style given');
$action = valid_input_set('action', array('subscribe', 'unsubscribe'),
- $params, $lang['subscr_invalid_action']);
+ $params, 'invalid subscription action given');
// Check other conditions.
if ($action === 'subscribe') {
@@ -635,7 +635,8 @@ function subscription_handle_post($params) {
}
}
if ($is === false) {
- throw new Exception(sprintf($lang['subscr_not_subscribed_you'],
+ throw new Exception(sprintf($lang['subscr_not_subscribed'],
+ $_SERVER['REMOTE_USER'],
prettyprint_id($target)));
}
// subscription_set deletes a subscription if style = null.