Skip to content

Commit abdc376

Browse files
committed
Fix language class issues
1 parent e423880 commit abdc376

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

controller/admin_controller.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ protected function add_edit_rule_data($entity, $data)
459459
}
460460
catch (\phpbb\boardrules\exception\out_of_bounds $e)
461461
{
462-
trigger_error($e->get_message($this->user) . adm_back_link($this->u_action), E_USER_WARNING);
462+
trigger_error($e->get_message($this->lang) . adm_back_link($this->u_action), E_USER_WARNING);
463463
}
464464

465465
// Change rule parent
@@ -471,7 +471,7 @@ protected function add_edit_rule_data($entity, $data)
471471
}
472472
catch (\Exception $e)
473473
{
474-
trigger_error($this->user->lang($e->getMessage()) . adm_back_link($this->u_action), E_USER_WARNING);
474+
trigger_error($this->lang->lang($e->getMessage()) . adm_back_link($this->u_action), E_USER_WARNING);
475475
}
476476
}
477477

@@ -487,7 +487,7 @@ protected function add_edit_rule_data($entity, $data)
487487
}
488488
catch (\phpbb\boardrules\exception\out_of_bounds $e)
489489
{
490-
trigger_error($e->get_message($this->user) . adm_back_link($this->u_action), E_USER_WARNING);
490+
trigger_error($e->get_message($this->lang) . adm_back_link($this->u_action), E_USER_WARNING);
491491
}
492492

493493
// Show user confirmation of the added rule and provide link back to the previous page
@@ -555,7 +555,7 @@ public function delete_rule($rule_id)
555555
}
556556
catch (\Exception $e)
557557
{
558-
trigger_error($this->user->lang($e->getMessage()) . adm_back_link($this->u_action), E_USER_WARNING);
558+
trigger_error($this->lang->lang($e->getMessage()) . adm_back_link($this->u_action), E_USER_WARNING);
559559
}
560560

561561
// Show user confirmation of the deleted rule and provide link back to the previous page
@@ -600,7 +600,7 @@ public function move_rule($rule_id, $direction, $amount = 1)
600600
}
601601
catch (\Exception $e)
602602
{
603-
trigger_error($this->user->lang($e->getMessage()) . adm_back_link($this->u_action), E_USER_WARNING);
603+
trigger_error($this->lang->lang($e->getMessage()) . adm_back_link($this->u_action), E_USER_WARNING);
604604
}
605605

606606
// Send a JSON response if an AJAX request was used

0 commit comments

Comments
 (0)