Fix: Remove Application class references, use string literals for app ID and version
This commit is contained in:
@@ -7,7 +7,6 @@ namespace OCA\AnalyticsHub\Controller;
|
||||
use OCP\IRequest;
|
||||
use OCP\IConfig;
|
||||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
use OCA\AnalyticsHub\AppInfo\Application;
|
||||
use OCA\AnalyticsHub\Service\GoogleAnalyticsService;
|
||||
use OCA\AnalyticsHub\Service\LLMService;
|
||||
|
||||
@@ -60,8 +59,8 @@ class PageController extends \OCP\AppFramework\Controller {
|
||||
}
|
||||
|
||||
// Get configuration values (masked for secrets)
|
||||
$clientId = $this->config->getAppValue('google_client_id', Application::APP_NAME, '');
|
||||
$apiKey = $this->config->getAppValue('anthropic_api_key', Application::APP_NAME, '');
|
||||
$clientId = $this->config->getAppValue('google_client_id', 'analyticshub', '');
|
||||
$apiKey = $this->config->getAppValue('anthropic_api_key', 'analyticshub', '');
|
||||
|
||||
// Mask API key for display
|
||||
$maskedApiKey = '';
|
||||
@@ -71,7 +70,7 @@ class PageController extends \OCP\AppFramework\Controller {
|
||||
|
||||
return new TemplateResponse($this->appName, 'admin', [
|
||||
'app_name' => $this->appName,
|
||||
'version' => Application::APP_VERSION,
|
||||
'version' => '1.0.0',
|
||||
'status' => 'Ready for development',
|
||||
'is_configured' => $isConfigured,
|
||||
'is_ga_configured' => $isGAConfigured,
|
||||
|
||||
Reference in New Issue
Block a user