|
18 | 18 | if (empty($_POST['redirect']) && isset($_GET['redirect'])) { |
19 | 19 | $_POST['redirect'] = $_GET['redirect']; |
20 | 20 | } |
| 21 | +// Assume English if we didn't get a language |
| 22 | +if (empty($_POST['repo'])) { |
| 23 | + $_POST['repo'] = 'en'; |
| 24 | +} |
21 | 25 |
|
22 | 26 | // Decide on whether all vars are present for processing |
23 | 27 | $process = true; |
|
258 | 262 | <div class='columns'> |
259 | 263 | <ul> |
260 | 264 | <li><strong>Bug reports & Missing documentation</strong> |
261 | | - Instead <a href="http://bugs.php.net/report.php?bug_type=Documentation+problem<?php echo isset($_POST['sect']) ? '&manpage=' . clean($_POST['sect']) : ''; ?>">report a bug</a> |
262 | | - for this manual page to the bug database. |
| 265 | + Instead <a href="https://github.com/php/doc-<?=clean($_POST['repo'])?>/issues/new?body=From%20manual%20page:%20https:%2F%2Fphp.net%2F<?=clean($_POST['sect'])?>%0A%0A---">report an issue</a> |
| 266 | + for this manual page. |
263 | 267 | </li> |
264 | 268 | <li><strong>Support questions or request for help</strong> See the <a href="/support.php">support page</a> for available options. In other words, do not ask questions within the user notes.</li> |
265 | 269 | <li><strong>References to other notes or authors</strong> This is not a forum; we do not encourage nor permit discussions here. Further, if a note is referenced directly and is later removed or modified it causes confusion. |
|
347 | 351 | <td colspan="2"> |
348 | 352 | <b> |
349 | 353 | <a href="/support.php">Click here to go to the support pages.</a><br> |
350 | | - <a href="http://bugs.php.net/report.php?bug_type=Documentation+problem&manpage=<?php echo clean($_POST['sect']); ?>">Click here to submit a bug report.</a><br> |
351 | | - <a href="http://bugs.php.net/report.php?bug_type=Documentation+problem&manpage=<?php echo clean($_POST['sect']); ?>">Click here to request a feature.</a><br> |
352 | | - (Again, please note, if you ask a question, report a bug, or request a feature, |
| 354 | + <a href="https://github.com/php/doc-<?=clean($_POST['repo'])?>/issues/new?body=From%20manual%20page:%20https:%2F%2Fphp.net%2F<?=clean($_POST['sect'])?>%0A%0A---">Click here to submit an issue about the documentation.</a><br> |
| 355 | + <a href="https://github.com/php/php-src/issues/new?body=From%20manual%20page:%20https:%2F%2Fphp.net%2F<?=clean($_POST['sect'])?>%0A%0A---">Click here to submit an issue about PHP itself.</a><br> |
| 356 | + (Again, please note, if you ask a question, report an issue, or request a feature, |
353 | 357 | your note <i>will be deleted</i>.) |
354 | 358 | </b> |
355 | 359 | </td> |
|
0 commit comments