Commit 7fb1c9ae authored by dmorley's avatar dmorley

fix lang update save to meta

parent b3f5ce85
Pipeline #593 passed with stage
in 3 minutes and 46 seconds
......@@ -253,6 +253,7 @@ foreach ($pods as $pod) {
// Default to the already saved language.
$detectedlanguage = $language;
$languagesupdated = false;
$language_snippet = getWebsiteLanguageSnippetFromUrl("https://{$domain}/");
if (!$language_snippet) {
......@@ -437,4 +438,6 @@ updateMeta('pods_updated');
$time_end = microtime(true);
$execution_time = ($time_end - $time_start)/60;
updateMeta('pods_update_runtime', round($execution_time));
($languagesupdated ?: updateMeta('languages_updated'));
if ($languagesupdated) {
updateMeta('languages_updated');
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment