mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-21 12:03:09 +02:00
refactor: eliminate proxy functions, migrate to direct class method calls
312 files changed, 2866 insertions(+), 24110 deletions(-) Proxy function replacements (130+ functions): - goHome() -> AdminHelpers::goHome() - checkPermissions() -> PageAuthorization::checkPermissions() - getBouquet/getCategory/etc -> Service::getById() - deleteStream/deleteLine/etc -> Repository/Service::delete() - APIRequest/systemapirequest -> ApiClient::request/systemRequest() - prepareArray/preparecolumn -> QueryHelper methods - confirmIDs/parserelease/etc -> AdminHelpers methods - getSettings/clearSettingsCache -> SettingsManager methods - destroySession -> SessionManager::clearContext() - getMag/getEnigma/deleteMAG/etc -> MagService/EnigmaService - getSeriesTrailer/getMovieTMDB/etc -> TMDbService methods Removed legacy files: - src/includes/admin.php (main proxy hub) - src/includes/libs/ (35+ files moved to core/modules) - src/includes/python/ (moved to bin/python) - src/includes/api/ (moved to Controllers) - src/includes/ts.php, reseller_api.php - src/infrastructure/legacy/admin_proxies.php - tools/run_scan.sh, update_redis_conf.sh Additional fixes: - SQL query placeholder migration (BouquetService, CategoryService) - PHP 8.x null-safe access (live.php, server_view.php, stream.php) - TmdbCron: extracted variable for repeated similar_text calls
This commit is contained in:
@@ -17,7 +17,7 @@ class TicketViewController extends BaseAdminController {
|
||||
|
||||
$rTicketInfo = null;
|
||||
if (isset(RequestManager::getAll()['id'])) {
|
||||
$rTicketInfo = getTicket(RequestManager::getAll()['id']);
|
||||
$rTicketInfo = TicketRepository::getById(RequestManager::getAll()['id']);
|
||||
}
|
||||
if (!$rTicketInfo) {
|
||||
$this->redirect('tickets');
|
||||
|
||||
Reference in New Issue
Block a user