• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqtwindows誰得cocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Commit MetaInfo

Revision779d7eaec0610523f7df97e9503cc3f8d63a1fae (tree)
Time2021-12-14 00:54:28
Authorumorigu <umorigu@gmai...>
Commiterumorigu

Log Message

BugTrack/2533 Don't create AutoTicketLinkName page on setting off

$no_autoticketlinkname

* 0: (default) Create AutoTicketLinkName page automatically
* 1: Never create AutoTicketLinkName

Change Summary

Incremental Difference

--- a/plugin/edit.inc.php
+++ b/plugin/edit.inc.php
@@ -275,14 +275,16 @@ function plugin_edit_cancel()
275275 */
276276 function plugin_edit_setup_initial_pages()
277277 {
278- global $autoalias;
278+ global $autoalias, $no_autoticketlinkname;
279279
280280 // Related: Rename plugin
281281 if (exist_plugin('rename') && function_exists('plugin_rename_setup_initial_pages')) {
282282 plugin_rename_setup_initial_pages();
283283 }
284284 // AutoTicketLinkName page
285- init_autoticketlink_def_page();
285+ if (! $no_autoticketlinkname) {
286+ init_autoticketlink_def_page();
287+ }
286288 // AutoAliasName page
287289 if ($autoalias) {
288290 init_autoalias_def_page();
--- a/pukiwiki.ini.php
+++ b/pukiwiki.ini.php
@@ -305,6 +305,8 @@ $search_auth = 0;
305305
306306 /////////////////////////////////////////////////
307307 // AutoTicketLink
308+// (0:Create AutoTicketLinkName page automatically, 1:Don't create the page)
309+$no_autoticketlinkname = 0;
308310 $ticket_link_sites = array(
309311 /*
310312 array(