]> git.mjollnir.org Git - s9y.git/commitdiff
fix permalinks array idx
authorgarvinhicking <garvinhicking>
Wed, 23 Nov 2005 11:30:28 +0000 (11:30 +0000)
committergarvinhicking <garvinhicking>
Wed, 23 Nov 2005 11:30:28 +0000 (11:30 +0000)
docs/NEWS
include/admin/personal.inc.php
include/admin/users.inc.php
include/functions.inc.php

index 614946364306e95e5e97f51d5e553f14b0a6b0ac..ee0b51f2a851505a94b9f8c146354260d173a27d 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -1,8 +1,11 @@
 # $Id$
 
-Version 0.9.1 ()
+Version 0.9.1 (November 23rd, 2005)
 ------------------------------------------------------------------------
 
+    * Fix renaming authors and categories to also properly update permalinks
+      that have no %id% column (garvinhicking)
+
     * Fix configuration for non-admins to not properly store values like
       blog Title (garvinhicking)
 
index 7a27edc92bc33692d0b2ad301b3093b89594d975..3ae27c102c7c8681840bfee1db6e05236cf9ee6c 100644 (file)
@@ -58,6 +58,7 @@ if ($serendipity['GET']['adminAction'] == 'save' && serendipity_checkFormToken()
             }
 
             $pl_data = array(
+                'id'       => $serendipity['POST']['authorid'],
                 'authorid' => $serendipity['POST']['authorid'],
                 'username' => $_POST['username'],
                 'realname' => $_POST['realname'],
index 9e86e9149a11245bf838ea432e3223cb5b1af765..67df299e8dd55834940bbd9e395a37b42745d9ce 100644 (file)
@@ -133,6 +133,7 @@ if (isset($_POST['SAVE_EDIT']) && serendipity_checkFormToken()) {
         }
 
         $pl_data = array(
+            'id'       => $serendipity['POST']['authorid'],
             'authorid' => $serendipity['POST']['authorid'],
             'username' => $_POST['username'],
             'realname' => $_POST['realname'],
index b8db1d142753fc230602950f30469a242d391813..654ee55590632ff4cfa5d6d4c88bb7bb78685ca0 100644 (file)
@@ -676,6 +676,7 @@ function serendipity_updateCategory($cid, $name, $desc, $authorid, $icon, $paren
     serendipity_plugin_api::hook_event('backend_category_update', $cid);
 
     $data = array(
+        'id'                   => $cid,
         'categoryid'           => $cid,
         'category_name'        => $name,
         'category_description' => $desc