} } /** * @param $manager * * @return void */ private function attachPrivileges($manager) { $manager->registerPrivilegePlugin('akeeba', '\\Solo\\Application\\WordpressUserPrivileges'); } /** * @return void */ private function setupMediaVersioning() { $this->getContainer()->mediaQueryKey = md5(microtime(false)); $isDebug = !defined('AKEEBADEBUG'); $hasVersion = defined('AKEEBABACKUP_VERSION') && defined('AKEEBABACKUP_DATE'); $isDevelopment = $hasVersion ? ((strpos(AKEEBABACKUP_VERSION, 'svn') !== false) || (strpos(AKEEBABACKUP_VERSION, 'dev') !== false) || (strpos(AKEEBABACKUP_VERSION, 'rev') !== false)) : true; if (!$isDebug && !$isDevelopment && $hasVersion) { $this->getContainer()->mediaQueryKey = md5(AKEEBABACKUP_VERSION . AKEEBABACKUP_DATE); } } } } } /** * @param $manager * * @return void */ private function attachPrivileges($manager) { $manager->registerPrivilegePlugin('akeeba', '\\Solo\\Application\\WordpressUserPrivileges'); } /** * @return void */ private function setupMediaVersioning() { $this->getContainer()->mediaQueryKey = md5(microtime(false)); $isDebug = !defined('AKEEBADEBUG'); $hasVersion = defined('AKEEBABACKUP_VERSION') && defined('AKEEBABACKUP_DATE'); $isDevelopment = $hasVersion ? ((strpos(AKEEBABACKUP_VERSION, 'svn') !== false) || (strpos(AKEEBABACKUP_VERSION, 'dev') !== false) || (strpos(AKEEBABACKUP_VERSION, 'rev') !== false)) : true; if (!$isDebug && !$isDevelopment && $hasVersion) { $this->getContainer()->mediaQueryKey = md5(AKEEBABACKUP_VERSION . AKEEBABACKUP_DATE); } } }