mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-02 19:17:21 +01:00
Cannot "move" a thread to the same board.
This commit is contained in:
parent
2a6f47e7ae
commit
84c181e692
5
mod.php
5
mod.php
@ -2183,6 +2183,9 @@
|
|||||||
$targetBoard = $_POST['board'];
|
$targetBoard = $_POST['board'];
|
||||||
$shadow = isset($_POST['shadow']);
|
$shadow = isset($_POST['shadow']);
|
||||||
|
|
||||||
|
if($targetBoard == $boardName)
|
||||||
|
error("Target and source board are the same.");
|
||||||
|
|
||||||
// copy() if leaving a shadow thread behind. otherwise, rename().
|
// copy() if leaving a shadow thread behind. otherwise, rename().
|
||||||
$clone = $shadow ? 'copy' : 'rename';
|
$clone = $shadow ? 'copy' : 'rename';
|
||||||
|
|
||||||
@ -2300,6 +2303,8 @@
|
|||||||
|
|
||||||
$__boards = '';
|
$__boards = '';
|
||||||
foreach($boards as &$_board) {
|
foreach($boards as &$_board) {
|
||||||
|
if($_board['uri'] == $board['uri'])
|
||||||
|
continue;
|
||||||
$__boards .= '<li>' .
|
$__boards .= '<li>' .
|
||||||
'<input type="radio" name="board" id="board_' . $_board['uri'] . '" value="' . $_board['uri'] . '">' .
|
'<input type="radio" name="board" id="board_' . $_board['uri'] . '" value="' . $_board['uri'] . '">' .
|
||||||
'<label style="display:inline" for="board_' . $_board['uri'] . '"> ' .
|
'<label style="display:inline" for="board_' . $_board['uri'] . '"> ' .
|
||||||
|
Loading…
Reference in New Issue
Block a user