Révision | 779d7eaec0610523f7df97e9503cc3f8d63a1fae (tree) |
---|---|
l'heure | 2021-12-14 00:54:28 |
Auteur | umorigu <umorigu@gmai...> |
Commiter | umorigu |
BugTrack/2533 Don't create AutoTicketLinkName page on setting off
$no_autoticketlinkname
* 0: (default) Create AutoTicketLinkName page automatically
* 1: Never create AutoTicketLinkName
@@ -275,14 +275,16 @@ function plugin_edit_cancel() | ||
275 | 275 | */ |
276 | 276 | function plugin_edit_setup_initial_pages() |
277 | 277 | { |
278 | - global $autoalias; | |
278 | + global $autoalias, $no_autoticketlinkname; | |
279 | 279 | |
280 | 280 | // Related: Rename plugin |
281 | 281 | if (exist_plugin('rename') && function_exists('plugin_rename_setup_initial_pages')) { |
282 | 282 | plugin_rename_setup_initial_pages(); |
283 | 283 | } |
284 | 284 | // AutoTicketLinkName page |
285 | - init_autoticketlink_def_page(); | |
285 | + if (! $no_autoticketlinkname) { | |
286 | + init_autoticketlink_def_page(); | |
287 | + } | |
286 | 288 | // AutoAliasName page |
287 | 289 | if ($autoalias) { |
288 | 290 | init_autoalias_def_page(); |
@@ -305,6 +305,8 @@ $search_auth = 0; | ||
305 | 305 | |
306 | 306 | ///////////////////////////////////////////////// |
307 | 307 | // AutoTicketLink |
308 | +// (0:Create AutoTicketLinkName page automatically, 1:Don't create the page) | |
309 | +$no_autoticketlinkname = 0; | |
308 | 310 | $ticket_link_sites = array( |
309 | 311 | /* |
310 | 312 | array( |