3 $phpPhraseSettingsFile = $argv[1];
5 $jsonPhraseSettingsFile = dirname($phpPhraseSettingsFile).'/'.basename($phpPhraseSettingsFile, '.php').'.json';
7 if (file_exists($phpPhraseSettingsFile) && !file_exists($jsonPhraseSettingsFile)) {
9 $jsonPhraseSettingsFile = dirname($phpPhraseSettingsFile)."/".basename($phpPhraseSettingsFile, ".php").".json";
11 if(file_exists($phpPhraseSettingsFile) && !file_exists($jsonPhraseSettingsFile))
13 >>>>>>> 3d939458... Changed phrase_settings.py to phrase-settings.json and added migration function for old php settings file.
14 include $phpPhraseSettingsFile;
18 if (isset($aTagsBlacklist))
19 $data['blackList'] = $aTagsBlacklist;
20 if (isset($aTagsWhitelist))
21 $data['whiteList'] = $aTagsWhitelist;
23 $jsonFile = fopen($jsonPhraseSettingsFile, 'w');
24 fwrite($jsonFile, json_encode($data));
30 >>>>>>> 3d939458... Changed phrase_settings.py to phrase-settings.json and added migration function for old php settings file.