File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
22return [
33 'title ' => [
4- 'modifiedTitle ' => 'The <strong>%s</strong> was <strong>%s</strong> by <strong>%s</strong>. <br><small> Updated at : <strong>%s</strong></small> ' ,
4+ 'modifiedTitle ' => 'تم تعديل <strong>%s</strong> بواسطة <strong>%s</strong>. <br><small> تم التحديث في : <strong>%s</strong></small> ' ,
55 ],
66 'properties ' => [
7- 'modifiedProperties ' => '%s %s the following : <br>%s ' ,
7+ 'modifiedProperties ' => 'تم تعديل الخصائص التالية بواسطة %s : <br>%s ' ,
88 'compareOldAndNewValues ' => [
9- 'notEquals ' => '- %s from <strong>%s</strong> to <strong>%s</strong> ' ,
9+ 'notEquals ' => '- %s من <strong>%s</strong> إلى <strong>%s</strong> ' ,
1010 'equals ' => '- %s <strong>%s</strong> ' ,
1111 ],
1212 'getNewValues ' => '- %s <strong>%s</strong> ' ,
Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ private function modifiedTitle($state): string|HtmlString|Closure
5757 return $ this ->evaluate ($ this ->configureTitleUsing , ['state ' => $ state ]);
5858 } else {
5959 if ($ state ['description ' ] == $ state ['event ' ]) {
60- $ className = Str::lower (Str::snake (class_basename ($ state ['subject ' ]), ' ' ));
60+ $ className = property_exists ($ state ['subject ' ], 'activityTitleName ' ) && !empty ($ state ['subject ' ]::$ activityTitleName )
61+ ? $ state ['subject ' ]::$ activityTitleName
62+ : Str::lower (Str::snake (class_basename ($ state ['subject ' ]), ' ' ));
6163 $ causerName = $ this ->getCauserName ($ state ['causer ' ]);
6264
6365 $ parser = ActivitylogPlugin::get ()->getDateParser ();
You can’t perform that action at this time.
0 commit comments