Permalink
Browse files

Quoting settings files containing On or Off since they are parsed as …

…booleans since PHP 5.3
  • Loading branch information...
1 parent aa80417 commit 266ca2ff081d82e80f0eb0cfcb13cd4b833367c8 Semias committed Jun 21, 2012
@@ -6,12 +6,12 @@
[files]
-alt = Allow new files
+alt = "Allow new files"
type = select
[files_date]
-alt = Turn files off on
+alt = "Turn files off on"
type = date
[contact]
@@ -6,12 +6,12 @@
[notes]
-alt = Allow new notes
+alt = "Allow new notes"
type = select
[notes_date]
-alt = Turn notes off on
+alt = "Turn notes off on"
type = date
[contact]
@@ -160,7 +160,7 @@ function transform ($value, $import = '') {
return $value;
}
} elseif ($this->type == 'alternate') {
- list ($first, $second) = preg_split ('/:/', $this->rule);
+ list ($first, $second) = explode (':', $this->rule);
if (! isset ($this->_previous) || $this->_previous == $second) {
$this->_previous = $first;
return $first;

0 comments on commit 266ca2f

Please sign in to comment.