summaryrefslogtreecommitdiff
path: root/actions/recoverpassword.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-12-23 14:21:29 -0500
committerEvan Prodromou <evan@prodromou.name>2008-12-23 14:21:29 -0500
commiteb2f9c98ac115ce67e9a740b200c832153ffa05c (patch)
tree562e524f12420a97fc66a5c9db0ccd6a1f9aea09 /actions/recoverpassword.php
parentedbc0c665cc65875b4d14b79939233b1c9c06bb6 (diff)
replace NULL with null
Another global search-and-replace update. Here, I've replaced the PHP keyword 'NULL' with its lowercase version. This is another PEAR code standards change. darcs-hash:20081223192129-84dde-4a0182e0ec16a01ad88745ad3e08f7cb501aee0b.gz
Diffstat (limited to 'actions/recoverpassword.php')
-rw-r--r--actions/recoverpassword.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/actions/recoverpassword.php b/actions/recoverpassword.php
index 1263fee9b..068d582fa 100644
--- a/actions/recoverpassword.php
+++ b/actions/recoverpassword.php
@@ -132,12 +132,12 @@ class RecoverpasswordAction extends Action {
unset($_SESSION['tempuser']);
}
- function show_top($msg=NULL) {
+ function show_top($msg=null) {
if ($msg) {
common_element('div', 'error', $msg);
} else {
common_element_start('div', 'instructions');
- common_element('p', NULL,
+ common_element('p', null,
_('If you\'ve forgotten or lost your' .
' password, you can get a new one sent to' .
' the email address you have stored ' .
@@ -146,7 +146,7 @@ class RecoverpasswordAction extends Action {
}
}
- function show_password_top($msg=NULL) {
+ function show_password_top($msg=null) {
if ($msg) {
common_element('div', 'error', $msg);
} else {
@@ -156,9 +156,9 @@ class RecoverpasswordAction extends Action {
}
}
- function show_form($msg=NULL) {
+ function show_form($msg=null) {
- common_show_header(_('Recover password'), NULL,
+ common_show_header(_('Recover password'), null,
$msg, array($this, 'show_top'));
common_element_start('form', array('method' => 'post',
@@ -173,9 +173,9 @@ class RecoverpasswordAction extends Action {
common_show_footer();
}
- function show_password_form($msg=NULL) {
+ function show_password_form($msg=null) {
- common_show_header(_('Reset password'), NULL,
+ common_show_header(_('Reset password'), null,
$msg, array($this, 'show_password_top'));
common_element_start('form', array('method' => 'post',
@@ -224,7 +224,7 @@ class RecoverpasswordAction extends Action {
$confirm_email = Confirm_address::staticGet('user_id', $user->id);
if ($confirm_email && $confirm_email->address_type != 'email') {
# Skip non-email confirmations
- $confirm_email = NULL;
+ $confirm_email = null;
}
}
@@ -267,7 +267,7 @@ class RecoverpasswordAction extends Action {
mail_to_user($user, _('Password recovery requested'), $body, $confirm->address);
common_show_header(_('Password recovery requested'));
- common_element('p', NULL,
+ common_element('p', null,
_('Instructions for recovering your password ' .
'have been sent to the email address registered to your ' .
'account.'));
@@ -324,7 +324,7 @@ class RecoverpasswordAction extends Action {
common_real_login(true);
common_show_header(_('Password saved.'));
- common_element('p', NULL, _('New password successfully saved. ' .
+ common_element('p', null, _('New password successfully saved. ' .
'You are now logged in.'));
common_show_footer();
}