dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Clean up $wgSQLiteDataDir handling and removed standalone sqlite class"
[lhc/web/wiklou.git]
/
includes
/
ProtectionForm.php
diff --git
a/includes/ProtectionForm.php
b/includes/ProtectionForm.php
index
f777a37
..
1219da5
100644
(file)
--- a/
includes/ProtectionForm.php
+++ b/
includes/ProtectionForm.php
@@
-156,7
+156,7
@@
class ProtectionForm {
} else {
$value = $this->mExpirySelection[$action];
}
} else {
$value = $this->mExpirySelection[$action];
}
- if (
$value == 'infinite' || $value == 'indefinite' || $value == 'infinity'
) {
+ if (
wfIsInfinity( $value )
) {
$time = wfGetDB( DB_SLAVE )->getInfinity();
} else {
$unix = strtotime( $value );
$time = wfGetDB( DB_SLAVE )->getInfinity();
} else {
$unix = strtotime( $value );