return $this->appHelper->getBasePath();
}
- /**
- * @param IManageConfigValues $config The Configuration
- * @param Mode $mode The mode of this Friendica app
- * @param BaseURL $baseURL The full base URL of this Friendica app
- * @param LoggerInterface $logger The current app logger
- * @param Profiler $profiler The profiler of this application
- * @param L10n $l10n The translator instance
- * @param App\Arguments $args The Friendica Arguments of the call
- * @param IHandleUserSessions $session The (User)Session handler
- * @param DbaDefinition $dbaDefinition
- * @param ViewDefinition $viewDefinition
- */
public function __construct(
Request $request,
Authentication $auth,
DbaDefinition $dbaDefinition,
ViewDefinition $viewDefinition
) {
- $this->requestId = $request->getRequestId();
- $this->auth = $auth;
- $this->config = $config;
- $this->mode = $mode;
- $this->baseURL = $baseURL;
- $this->profiler = $profiler;
- $this->logger = $logger;
- $this->l10n = $l10n;
- $this->args = $args;
- $this->session = $session;
- $this->appHelper = DI::apphelper();
+ $this->requestId = $request->getRequestId();
+ $this->auth = $auth;
+ $this->config = $config;
+ $this->mode = $mode;
+ $this->baseURL = $baseURL;
+ $this->profiler = $profiler;
+ $this->logger = $logger;
+ $this->l10n = $l10n;
+ $this->args = $args;
+ $this->session = $session;
+ $this->appHelper = DI::apphelper();
$this->load($dbaDefinition, $viewDefinition);
}
get_include_path() . PATH_SEPARATOR
. $this->appHelper->getBasePath() . DIRECTORY_SEPARATOR . 'include' . PATH_SEPARATOR
. $this->appHelper->getBasePath() . DIRECTORY_SEPARATOR . 'library' . PATH_SEPARATOR
- . $this->appHelper->getBasePath());
+ . $this->appHelper->getBasePath()
+ );
$this->profiler->reset();
// Let the module run its internal process (init, get, post, ...)
$timestamp = microtime(true);
- $response = $module->run($httpException, $input);
+ $response = $module->run($httpException, $input);
$this->profiler->set(microtime(true) - $timestamp, 'content');
// Wrapping HTML responses in the theme template
// Allow themes to control internal parameters
// by changing App values in theme.php
private $theme_info = [
- 'videowidth' => 425,
+ 'videowidth' => 425,
'videoheight' => 350,
];
IHandleUserSessions $session
) {
$this->database = $database;
- $this->config = $config;
- $this->mode = $mode;
- $this->l10n = $l10n;
- $this->baseURL = $baseURL;
- $this->pConfig = $pConfig;
- $this->session = $session;
+ $this->config = $config;
+ $this->mode = $mode;
+ $this->l10n = $l10n;
+ $this->baseURL = $baseURL;
+ $this->pConfig = $pConfig;
+ $this->session = $session;
}
/**
// Sane default
$this->setCurrentTheme($system_theme);
- $page_theme = null;
+ $page_theme = null;
$profile_owner = $this->getProfileOwner();
// Find the theme that belongs to the user whose stuff we are looking at
$theme_name = Strings::sanitizeFilePathItem($theme_name);
if ($theme_name
- && in_array($theme_name, Theme::getAllowedList())
- && (file_exists('view/theme/' . $theme_name . '/style.css')
- || file_exists('view/theme/' . $theme_name . '/style.php'))
+ && in_array($theme_name, Theme::getAllowedList())
+ && (file_exists('view/theme/' . $theme_name . '/style.css')
+ || file_exists('view/theme/' . $theme_name . '/style.php'))
) {
$this->setCurrentTheme($theme_name);
}
$this->setCurrentMobileTheme($system_mobile_theme);
$page_mobile_theme = null;
- $profile_owner = $this->getProfileOwner();
+ $profile_owner = $this->getProfileOwner();
// Find the theme that belongs to the user whose stuff we are looking at
if (!empty($profile_owner) && ($profile_owner != $this->session->getLocalUserId())) {