Skip to content

Commit

Permalink
Input guide text fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Corbin committed Jun 6, 2021
1 parent 1b19c24 commit 3a59ea0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Concerns/PerInputGet.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function getNameDot(){
}

protected function _getTextTable($key, $guide = false){
$function = $guide ? '__' : [self::class, 'transNull'];
$function = !$guide ? '__' : [self::class, 'transNull'];
return (
$this->table !== null
? call_user_func( $function, 'columns.' . $this->table . '.'. $key . ($guide ? '_guide' : '') )
Expand Down Expand Up @@ -177,7 +177,7 @@ public function getGuide($force_key = null){
// If no guides, it means look to normal text
// instead with _guide suffix on key
if ($target === null){
$target = $this->shift_text ?? $this->alt_text_base ?? $this->text;
$target = $this->alt_text_base ?? $this->shift_text ?? $this->text;
$pointer .= '_guide';
}

Expand Down

0 comments on commit 3a59ea0

Please sign in to comment.