Skip to content

Instantly share code, notes, and snippets.

@ircykk
Created December 30, 2018 13:59
Show Gist options
  • Save ircykk/90639f1f01cfed1875d029937d2dcb52 to your computer and use it in GitHub Desktop.
Save ircykk/90639f1f01cfed1875d029937d2dcb52 to your computer and use it in GitHub Desktop.
Fix for PrestaShop 1.6 translation bug (save phrase but display old version in editor)
<?php
class AdminTranslationsController extends AdminTranslationsControllerCore
{
public function postProcess()
{
if (function_exists('opcache_reset')) {
opcache_reset();
}
return parent::postProcess();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment