Semi-automatically cleanup (dimensions of) photo galleries

This commit is contained in:
2016-02-08 16:25:03 +00:00
parent a6a8054273
commit fa3ec81f8d
78 changed files with 1218 additions and 2112 deletions

View File

@@ -15,6 +15,11 @@ function writeFile($sFile, $aYaml, $sContents = null) {
file_put_contents($sFile, '---' . "\n" . yamlDump($aYaml) . '---' . "\n" . trim($sContents));
}
function yamlParse($sFile, &$aYaml, &$sContents) {
$sContents = file_get_contents($sFile);
$aYaml = Yaml::parse($sContents);
}
function yamlDump($aData) {
return str_replace("'", null, Yaml::dump($aData, 4, 2));
}