Skip to content

Commit

Permalink
c/s
Browse files Browse the repository at this point in the history
  • Loading branch information
brianteeman committed May 11, 2018
1 parent 724b56f commit 96022c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions administrator/components/com_languages/models/override.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ public function getItem($pk = null)
$result->override = $strings[$pk];
}


$oppositeFileName = constant('JPATH_' . strtoupper($this->getState('filter.client') == 'site' ? 'administrator' : 'site'))
. '/language/overrides/' . $this->getState('filter.language', 'en-GB') . '.override.ini';
. '/language/overrides/' . $this->getState('filter.language', 'en-GB') . '.override.ini';
$oppositeStrings = JLanguageHelper::parseIniFile($oppositeFileName);
$result->both = isset($oppositeStrings[$pk]) && ($oppositeStrings[$pk] == $strings[$pk]);

Expand Down
1 change: 0 additions & 1 deletion libraries/src/Language/LanguageHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@ public static function saveToIniFile($fileName, array $strings)
$registry = new Registry($strings);

return \JFile::write($fileName, $registry->toString('INI'));

}

/**
Expand Down

0 comments on commit 96022c3

Please sign in to comment.