|
@@ 3351-3354 (lines=4) @@
|
| 3348 |
|
api_not_allowed(); |
| 3349 |
|
} |
| 3350 |
|
|
| 3351 |
|
if (!$_GET['title']) { |
| 3352 |
|
Display::addFlash(Display::return_message(get_lang("MustSelectPage"), 'error', false)); |
| 3353 |
|
return; |
| 3354 |
|
} |
| 3355 |
|
|
| 3356 |
|
// First extract the date of last version |
| 3357 |
|
$sql = 'SELECT * FROM '.$tbl_wiki.' |
|
@@ 4874-4877 (lines=4) @@
|
| 4871 |
|
$groupfilter = $this->groupfilter; |
| 4872 |
|
$condition_session = $this->condition_session; |
| 4873 |
|
|
| 4874 |
|
if (!$_GET['title']) { |
| 4875 |
|
Display::addFlash(Display::return_message(get_lang('MustSelectPage'), 'error', false)); |
| 4876 |
|
return; |
| 4877 |
|
} |
| 4878 |
|
|
| 4879 |
|
if (api_is_allowed_to_edit(false, true) || api_is_platform_admin()) { |
| 4880 |
|
Display::addFlash('<div id="wikititle">'.get_lang('DeletePageHistory').'</div>'); |
|
@@ 5260-5263 (lines=4) @@
|
| 5257 |
|
$session_id = $this->session_id; |
| 5258 |
|
$userId = api_get_user_id(); |
| 5259 |
|
|
| 5260 |
|
if (!$_GET['title']) { |
| 5261 |
|
Display::addFlash(Display::return_message(get_lang("MustSelectPage"), 'error', false)); |
| 5262 |
|
return; |
| 5263 |
|
} |
| 5264 |
|
|
| 5265 |
|
/* First, see the property visibility that is at the last register and |
| 5266 |
|
therefore we should select descending order. |