Last change
on this file since 3579 was
3579,
checked in by flop25, 15 years ago
|
now the template check the version of the template
|
File size:
340 bytes
|
Line | |
---|
1 | <?php |
---|
2 | class floPure |
---|
3 | { |
---|
4 | function floPure_version_compare($a, $b) |
---|
5 | { |
---|
6 | $pattern = array('/([a-z])/ei', '/\.+/', '/\.\Z|\A\./'); |
---|
7 | $replacement = array( "'.'.intval('\\1', 36).'.'", '.', ''); |
---|
8 | |
---|
9 | $array = preg_replace($pattern, $replacement, array($a, $b)); |
---|
10 | |
---|
11 | return version_compare($array[0], $array[1], '>='); |
---|
12 | } |
---|
13 | } |
---|
14 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.