public function checkWillSucceed()
{
$this->fromFile->checkReadable();
$this->toFile->checkWritable();
}
/** * Detects whether plugin trackers will be automatically added to piwik.js or not. If not, the plugin tracker files * need to be loaded manually. * @return bool */ public function doesIncludePluginTrackersAutomatically() { Piwik::checkUserHasSomeAdminAccess(); try { $updater = new TrackerUpdater(); $updater->checkWillSucceed(); return true; } catch (AccessDeniedException $e) { return false; } catch (\Exception $e) { return false; } }