• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

blogger


Commit MetaInfo

Revisióna2999d0c58526e75f9238c9edf99dd15fd2698b1 (tree)
Tiempo2018-12-21 02:07:08
Autorumorigu <umorigu@gmai...>
Commiterumorigu

Log Message

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.

Cambiar Resumen

Diferencia incremental

--- a/plugin/rename.inc.php
+++ b/plugin/rename.inc.php
@@ -1,7 +1,7 @@
11 <?php
22 // PukiWiki - Yet another WikiWikiWeb clone
33 // rename.inc.php
4-// Copyright 2002-2017 PukiWiki Development Team
4+// Copyright 2002-2018 PukiWiki Development Team
55 // License: GPL v2 or (at your option) any later version
66 //
77 // Rename plugin: Rename page-name and related data
@@ -326,7 +326,6 @@ function plugin_rename_get_files($pages)
326326 }
327327 }
328328 }
329-
330329 return $files;
331330 }
332331
@@ -344,11 +343,11 @@ function plugin_rename_proceed($pages, $files, $exists)
344343 if (isset($exists[$page][$old]) && $exists[$page][$old])
345344 unlink($new);
346345 rename($old, $new);
347-
348- // linkデータベースを更新する BugTrack/327 arino
349- links_update($old);
350- links_update($new);
351346 }
347+ // linkデータベースを更新する BugTrack/327 arino
348+ $new_page = $pages[$page];
349+ links_update(decode($page));
350+ links_update(decode($new_page));
352351 }
353352 // Rename counter
354353 $pages_decoded = array();