* Also recreate custom permalinks without using URL rewriting

(garvinhicking)
This commit is contained in:
Garvin Hicking 2008-11-06 11:44:43 +00:00
parent da2083a046
commit c72734e963
2 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,9 @@
Version 1.4 ()
------------------------------------------------------------------------
* Also recreate custom permalinks without using URL rewriting
(garvinhicking)
* Fix WYSIWYG media insertion when being called on pages with
multiple HTML portions/nuggets, and also the staticpage plugin
(garvinhicking)

View File

@ -43,7 +43,6 @@ switch ($_POST['installAction'] && serendipity_checkFormToken()) {
// Compare all old permalink section values against new one. A change in any of those
// will force to update the .htaccess for rewrite rules.
if ($serendipity['rewrite'] != 'none') {
$permconf = serendipity_parseTemplate(S9Y_CONFIG_TEMPLATE);
if (is_array($permconf) && is_array($permconf['permalinks']['items'])) {
foreach($permconf['permalinks']['items'] AS $permitem) {
@ -51,7 +50,7 @@ switch ($_POST['installAction'] && serendipity_checkFormToken()) {
$permalinkNew[] = $serendipity[$permitem['var']];
}
}
}
if (serendipity_checkPermission('siteConfiguration') && serialize($permalinkOld) != serialize($permalinkNew)) {
printf(ATTEMPT_WRITE_FILE, $serendipity['serendipityPath'] . '.htaccess');