Lines Matching +full:php +full:- +full:version
1 <?php
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
37 * Middleware to check if a new version of webtrees is available.
54 $this->email_service = $email_service;
55 $this->upgrade_service = $upgrade_service;
56 $this->user_service = $user_service;
66 return I18N::translate('Check for new version');
82 if ($this->upgrade_service->isUpgradeAvailable()) {
83 $latest_version = $this->upgrade_service->latestVersion();
86 // Have we emailed about this version before?
92 foreach ($this->user_service->administrators() as $administrator) {
93 I18N::init($administrator->getPreference(UserInterface::PREF_LANGUAGE));
95 $this->email_service->send(
99 I18N::translate('A new version of webtrees is available.'),
100 view('emails/new-version-text', [
103 'url' => $request->getAttribute('base_url', ''),
105 view('emails/new-version-html', [
108 'url' => $request->getAttribute('base_url', ''),
117 return $handler->handle($request);