Skip to content

Commit

Permalink
pkp/pkp-lib#7352 Port installation form tweak to OPS
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Mar 9, 2023
1 parent b1251b4 commit b74ffea
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions classes/template/TemplateManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
use PKP\context\Context;
use PKP\core\PKPApplication;
use PKP\db\DAORegistry;
use PKP\facades\Locale;
use PKP\i18n\LocaleMetadata;
use PKP\session\SessionManager;
use PKP\site\Site;
use PKP\template\PKPTemplateManager;
Expand Down Expand Up @@ -79,7 +81,7 @@ public function initialize($request)
'siteTitle' => $context->getLocalizedName(),
'publicFilesDir' => $request->getBaseUrl() . '/' . $publicFileManager->getContextFilesPath($context->getId()),
'primaryLocale' => $context->getPrimaryLocale(),
'supportedLocales' => $context->getSupportedLocaleNames(),
'supportedLocales' => $context->getSupportedLocaleNames(LocaleMetadata::LANGUAGE_LOCALE_ONLY),
'numPageLinks' => $context->getData('numPageLinks'),
'itemsPerPage' => $context->getData('itemsPerPage'),
'enableAnnouncements' => $context->getData('enableAnnouncements'),
Expand Down Expand Up @@ -111,7 +113,11 @@ public function initialize($request)
'disableUserReg' => empty($contextsForRegistration),
'siteTitle' => $site->getLocalizedTitle(),
'primaryLocale' => $site->getPrimaryLocale(),
'supportedLocales' => $site->getSupportedLocalenames(),
'supportedLocales' => Locale::getFormattedDisplayNames(
$site->getSupportedLocales(),
Locale::getLocales(),
LocaleMetadata::LANGUAGE_LOCALE_ONLY
),
'pageFooter' => $site->getLocalizedData('pageFooter'),
]);
}
Expand Down

0 comments on commit b74ffea

Please sign in to comment.