Skip to content

Commit

Permalink
Yoda conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Jan 13, 2016
1 parent a41cf94 commit 63960ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class-tgm-plugin-activation.php
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,9 @@ public function overload_textdomain_mofile( $mofile, $domain ) {
}

// Current fallback file is not valid, let's try the alternative option.
if ( strpos( $mofile, '/themes/' ) !== false ) {
if ( false !== strpos( $mofile, '/themes/' ) ) {
return str_replace( '/themes/', '/plugins/', $mofile );
} elseif ( strpos( $mofile, '/plugins/' ) !== false ) {
} elseif ( false !== strpos( $mofile, '/plugins/' ) ) {
return str_replace( '/plugins/', '/themes/', $mofile );
} else {
return $mofile;
Expand Down

0 comments on commit 63960ab

Please sign in to comment.