-
Notifications
You must be signed in to change notification settings - Fork 7
/
update.php
35 lines (31 loc) · 1.08 KB
/
update.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
// Version-Check
if (rex_string::versionCompare($this->getVersion(), '2.0', '<')) {
if($this->getConfig('scheme') == 'standard') {
$this->setConfig('scheme', 'yrewrite_scheme_suffix');
}
if($this->getConfig('scheme') == 'nomatterurlrepl') {
$this->setConfig('scheme', 'yrewrite_scheme_nomatter');
}
if($this->getConfig('scheme') == 'urlreplleer') {
$this->setConfig('scheme', 'yrewrite_scheme_urlreplace');
}
if($this->getConfig('scheme') == 'one_level') {
$this->setConfig('scheme', 'yrewrite_one_level');
}
}
if (rex_string::versionCompare($this->getVersion(), '3.0', '<')) {
if($this->getConfig('scheme') == 'yrewrite_classic_mode') {
$this->setConfig('scheme', 'standard');
}
}
if (rex_string::versionCompare($this->getVersion(), '3.1', '<')) {
if($this->getConfig('scheme') == 'rewrite_scheme_urlreplacer') {
$this->setConfig('scheme', 'standard');
$this->setConfig('urlreplacer', 'urlreplace');
}
if($this->getConfig('scheme') == 'yrewrite_scheme_nomatter') {
$this->setConfig('scheme', 'standard');
$this->setConfig('urlreplacer', 'nomatter');
}
}