|
@@ -260,7 +260,7 @@ discard block |
|
|
block discarded – undo |
|
260
|
260
|
} |
|
261
|
261
|
else |
|
262
|
262
|
{ |
|
263
|
|
- $s_hidden_fields = '<input type="hidden" name="action['.$action.']" value="' . $action . '" />'; |
|
|
263
|
+ $s_hidden_fields = '<input type="hidden" name="action[' . $action . ']" value="' . $action . '" />'; |
|
264
|
264
|
$s_hidden_fields .= '<input type="hidden" name="back_link" value="' . $back_link . '" />'; |
|
265
|
265
|
foreach ($approve_ary as $id => $var) |
|
266
|
266
|
{ |
|
@@ -361,7 +361,7 @@ discard block |
|
|
block discarded – undo |
|
361
|
361
|
} |
|
362
|
362
|
else |
|
363
|
363
|
{ |
|
364
|
|
- $s_hidden_fields = '<input type="hidden" name="action['.$action.']" value="' . $action . '" />'; |
|
|
364
|
+ $s_hidden_fields = '<input type="hidden" name="action[' . $action . ']" value="' . $action . '" />'; |
|
365
|
365
|
$s_hidden_fields .= '<input type="hidden" name="back_link" value="' . $back_link . '" />'; |
|
366
|
366
|
foreach ($report_ary as $var) |
|
367
|
367
|
{ |
|
@@ -583,7 +583,7 @@ discard block |
|
|
block discarded – undo |
|
583
|
583
|
case 'reports_close': |
|
584
|
584
|
if (confirm_box(true)) |
|
585
|
585
|
{ |
|
586
|
|
- $back_link = $this->helper->route('phpbbgallery_core_moderate_image', array('image_id' => $image_id)); |
|
|
586
|
+ $back_link = $this->helper->route('phpbbgallery_core_moderate_image', array('image_id' => $image_id)); |
|
587
|
587
|
$this->report->close_reports_by_image($image_id); |
|
588
|
588
|
$message = $this->language->lang('WAITING_REPORTED_DONE', 1); |
|
589
|
589
|
$this->url->meta_refresh(3, $back_link); |
|
@@ -679,7 +679,7 @@ discard block |
|
|
block discarded – undo |
|
679
|
679
|
'REPORT_TIME' => $this->user->format_date($var['report_time']), |
|
680
|
680
|
'REPORT_NOTE' => $var['report_note'], |
|
681
|
681
|
'STATUS' => $var['report_status'], |
|
682
|
|
- 'MANAGER' => $var['report_manager'] != 0 ? $this->user_loader->get_username($var['report_manager'], 'full') : false, |
|
|
682
|
+ 'MANAGER' => $var['report_manager'] != 0 ? $this->user_loader->get_username($var['report_manager'], 'full') : false, |
|
683
|
683
|
)); |
|
684
|
684
|
} |
|
685
|
685
|
return $this->helper->render('gallery/moderate_image_overview.html', $this->language->lang('GALLERY')); |
|
@@ -804,7 +804,7 @@ discard block |
|
|
block discarded – undo |
|
804
|
804
|
$image_data = $this->image->get_image_data($image_id); |
|
805
|
805
|
$album_id = $image_data['image_album_id']; |
|
806
|
806
|
//$user_id = $image_data['image_user_id']; |
|
807
|
|
- $album_data = $this->album->get_info($album_id); |
|
|
807
|
+ $album_data = $this->album->get_info($album_id); |
|
808
|
808
|
$album_backlink = $this->helper->route('phpbbgallery_core_album', array('album_id' => $album_id)); |
|
809
|
809
|
$image_backlink = $this->helper->route('phpbbgallery_core_image', array('image_id' => $image_id)); |
|
810
|
810
|
$album_loginlink = append_sid($this->root_path . 'ucp.' . $this->php_ext . '?mode=login'); |
|
@@ -852,7 +852,7 @@ discard block |
|
|
block discarded – undo |
|
852
|
852
|
$image_data = $this->image->get_image_data($image_id); |
|
853
|
853
|
$album_id = $image_data['image_album_id']; |
|
854
|
854
|
//$user_id = $image_data['image_user_id']; |
|
855
|
|
- $album_data = $this->album->get_info($album_id); |
|
|
855
|
+ $album_data = $this->album->get_info($album_id); |
|
856
|
856
|
$album_backlink = $this->helper->route('phpbbgallery_core_album', array('album_id' => $album_id)); |
|
857
|
857
|
$image_backlink = $this->helper->route('phpbbgallery_core_image', array('image_id' => $image_id)); |
|
858
|
858
|
$album_loginlink = append_sid($this->root_path . 'ucp.' . $this->php_ext . '?mode=login'); |
|
@@ -868,7 +868,7 @@ discard block |
|
|
block discarded – undo |
|
868
|
868
|
$image_id_ary = array($image_id); |
|
869
|
869
|
$this->image->lock_images($image_id_ary, $album_data['album_id']); |
|
870
|
870
|
// To DO - add notification |
|
871
|
|
- $message = sprintf($this->language->lang('WAITING_LOCKED_IMAGE',1)); |
|
|
871
|
+ $message = sprintf($this->language->lang('WAITING_LOCKED_IMAGE', 1)); |
|
872
|
872
|
meta_refresh($meta_refresh_time, $image_backlink); |
|
873
|
873
|
trigger_error($message); |
|
874
|
874
|
} |