Skip to content

Commit

Permalink
Fix "Using $this when not in object context" error in StringUtilities…
Browse files Browse the repository at this point in the history
….php (NOJIRA)
  • Loading branch information
arlen committed Feb 7, 2023
1 parent 088b91c commit 8edb26b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/Lib/Util/StringUtilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class StringUtilities {
public static function columnKey($modelsName, $c, $tz=null, $useCustomClMdlLabel=false): string {
if(strpos($c, "_id", strlen($c)-3)) {
// Key is of the form field_id, use .ct label instead
$k = $this->foreignKeyToClassName($c);
$k = self::foreignKeyToClassName($c);

return __d('controller', $k, [1]);
}
Expand Down

0 comments on commit 8edb26b

Please sign in to comment.