* Also recreate custom permalinks without using URL rewriting
(garvinhicking)
This commit is contained in:
parent
80cf7dbf0c
commit
400e762b1d
@ -3,6 +3,9 @@
|
|||||||
Version 1.4 ()
|
Version 1.4 ()
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
* Also recreate custom permalinks without using URL rewriting
|
||||||
|
(garvinhicking)
|
||||||
|
|
||||||
* Fix WYSIWYG media insertion when being called on pages with
|
* Fix WYSIWYG media insertion when being called on pages with
|
||||||
multiple HTML portions/nuggets, and also the staticpage plugin
|
multiple HTML portions/nuggets, and also the staticpage plugin
|
||||||
(garvinhicking)
|
(garvinhicking)
|
||||||
|
@ -43,7 +43,6 @@ switch ($_POST['installAction'] && serendipity_checkFormToken()) {
|
|||||||
|
|
||||||
// Compare all old permalink section values against new one. A change in any of those
|
// Compare all old permalink section values against new one. A change in any of those
|
||||||
// will force to update the .htaccess for rewrite rules.
|
// will force to update the .htaccess for rewrite rules.
|
||||||
if ($serendipity['rewrite'] != 'none') {
|
|
||||||
$permconf = serendipity_parseTemplate(S9Y_CONFIG_TEMPLATE);
|
$permconf = serendipity_parseTemplate(S9Y_CONFIG_TEMPLATE);
|
||||||
if (is_array($permconf) && is_array($permconf['permalinks']['items'])) {
|
if (is_array($permconf) && is_array($permconf['permalinks']['items'])) {
|
||||||
foreach($permconf['permalinks']['items'] AS $permitem) {
|
foreach($permconf['permalinks']['items'] AS $permitem) {
|
||||||
@ -51,7 +50,7 @@ switch ($_POST['installAction'] && serendipity_checkFormToken()) {
|
|||||||
$permalinkNew[] = $serendipity[$permitem['var']];
|
$permalinkNew[] = $serendipity[$permitem['var']];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (serendipity_checkPermission('siteConfiguration') && serialize($permalinkOld) != serialize($permalinkNew)) {
|
if (serendipity_checkPermission('siteConfiguration') && serialize($permalinkOld) != serialize($permalinkNew)) {
|
||||||
printf(ATTEMPT_WRITE_FILE, $serendipity['serendipityPath'] . '.htaccess');
|
printf(ATTEMPT_WRITE_FILE, $serendipity['serendipityPath'] . '.htaccess');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user