blogger
Revisión | a2999d0c58526e75f9238c9edf99dd15fd2698b1 (tree) |
---|---|
Tiempo | 2018-12-21 02:07:08 |
Autor | umorigu <umorigu@gmai...> |
Commiter | umorigu |
BugTrack/327 rename.inc.php - Update rel/ref links on renaming page
Note:
Shida-san found this issue and provided initial fix code on PukiWiki-dev.
@@ -1,7 +1,7 @@ | ||
1 | 1 | <?php |
2 | 2 | // PukiWiki - Yet another WikiWikiWeb clone |
3 | 3 | // rename.inc.php |
4 | -// Copyright 2002-2017 PukiWiki Development Team | |
4 | +// Copyright 2002-2018 PukiWiki Development Team | |
5 | 5 | // License: GPL v2 or (at your option) any later version |
6 | 6 | // |
7 | 7 | // Rename plugin: Rename page-name and related data |
@@ -326,7 +326,6 @@ function plugin_rename_get_files($pages) | ||
326 | 326 | } |
327 | 327 | } |
328 | 328 | } |
329 | - | |
330 | 329 | return $files; |
331 | 330 | } |
332 | 331 |
@@ -344,11 +343,11 @@ function plugin_rename_proceed($pages, $files, $exists) | ||
344 | 343 | if (isset($exists[$page][$old]) && $exists[$page][$old]) |
345 | 344 | unlink($new); |
346 | 345 | rename($old, $new); |
347 | - | |
348 | - // linkデータベースを更新する BugTrack/327 arino | |
349 | - links_update($old); | |
350 | - links_update($new); | |
351 | 346 | } |
347 | + // linkデータベースを更新する BugTrack/327 arino | |
348 | + $new_page = $pages[$page]; | |
349 | + links_update(decode($page)); | |
350 | + links_update(decode($new_page)); | |
352 | 351 | } |
353 | 352 | // Rename counter |
354 | 353 | $pages_decoded = array(); |