From cfbeebb8dc1dcddebb84124951b039f8cff880d1 Mon Sep 17 00:00:00 2001 From: Matan Bareket Date: Sun, 20 Jan 2019 01:42:53 -0500 Subject: [PATCH] WEB: Add namespaces to all PHP files --- include/Controller.php | 4 +++- include/ExceptionHandler.php | 8 +++++--- include/I18N.php | 1 + include/Models/ArticleModel.php | 2 ++ include/Models/BasicModel.php | 2 ++ include/Models/CompatibilityModel.php | 2 ++ include/Models/CreditsModel.php | 2 ++ include/Models/DocumentationModel.php | 2 ++ include/Models/DownloadsModel.php | 2 ++ include/Models/FAQModel.php | 2 ++ include/Models/GameDemosModel.php | 2 ++ include/Models/GamesModel.php | 2 ++ include/Models/LinksModel.php | 2 ++ include/Models/MenuModel.php | 2 ++ include/Models/NewsModel.php | 2 ++ include/Models/ScreenshotsModel.php | 2 ++ include/Models/SubprojectsModel.php | 2 ++ include/Objects/Article.php | 2 ++ include/Objects/BasicObject.php | 2 ++ include/Objects/CSection.php | 4 +++- include/Objects/CompatGame.php | 2 ++ include/Objects/DSection.php | 2 ++ include/Objects/DSubSection.php | 2 ++ include/Objects/Document.php | 2 ++ include/Objects/File.php | 2 ++ include/Objects/GameDemo.php | 6 ++++-- include/Objects/MenuItem.php | 2 ++ include/Objects/News.php | 2 ++ include/Objects/Person.php | 2 ++ include/Objects/Project.php | 2 ++ include/Objects/QAEntry.php | 2 ++ include/Objects/QASection.php | 2 ++ include/Objects/Screenshot.php | 2 ++ include/Objects/WebLink.php | 4 +++- include/Pages/CompatibilityPage.php | 6 ++++-- include/Pages/ContactPage.php | 2 ++ include/Pages/CreditsPage.php | 4 +++- include/Pages/DemosPage.php | 2 ++ include/Pages/DocumentationPage.php | 2 ++ include/Pages/DownloadsPage.php | 4 +++- include/Pages/ExceptionsPage.php | 2 ++ include/Pages/FAQPage.php | 2 ++ include/Pages/FeedsPage.php | 2 ++ include/Pages/GamesPage.php | 2 ++ include/Pages/LinksPage.php | 4 +++- include/Pages/NewsPage.php | 2 ++ include/Pages/PressPage.php | 2 ++ include/Pages/PressSnowberryPage.php | 2 ++ include/Pages/ScreenshotsPage.php | 2 ++ include/Pages/SubprojectsPage.php | 2 ++ include/XMLParser.php | 2 ++ include/config.inc.php | 2 ++ 52 files changed, 116 insertions(+), 13 deletions(-) diff --git a/include/Controller.php b/include/Controller.php index cff0a748..191c94cd 100644 --- a/include/Controller.php +++ b/include/Controller.php @@ -1,4 +1,6 @@ _smarty->configLoad($fname); } - + setlocale(LC_TIME, $Smarty->getConfigVars('locale')); /** diff --git a/include/ExceptionHandler.php b/include/ExceptionHandler.php index 816762b9..f77b36fa 100644 --- a/include/ExceptionHandler.php +++ b/include/ExceptionHandler.php @@ -1,9 +1,11 @@ _title; } - + /* Get the anchor. */ public function getAnchor() { diff --git a/include/Objects/CompatGame.php b/include/Objects/CompatGame.php index d5bf6f5a..b204f213 100644 --- a/include/Objects/CompatGame.php +++ b/include/Objects/CompatGame.php @@ -1,4 +1,6 @@ _target; } - + /* Get the category for the demo. */ public function getCategory() { diff --git a/include/Objects/MenuItem.php b/include/Objects/MenuItem.php index c835e47b..2a40fa61 100644 --- a/include/Objects/MenuItem.php +++ b/include/Objects/MenuItem.php @@ -1,4 +1,6 @@ _description; } - + /* Get the user-agent. */ public function getUserAgent() { diff --git a/include/Pages/CompatibilityPage.php b/include/Pages/CompatibilityPage.php index c1113f80..3eac48df 100644 --- a/include/Pages/CompatibilityPage.php +++ b/include/Pages/CompatibilityPage.php @@ -1,4 +1,6 @@ renderPage( array( 'title' => preg_replace('/{version}/', $version, $Smarty->getConfigVars('compatibilityTitle')), @@ -94,7 +96,7 @@ class CompatibilityPage extends Controller $compat_data = CompatibilityModel::getAllData($version); global $Smarty; - + return $this->renderPage( array( 'title' => preg_replace('/{version}/', $version, $Smarty->getConfigVars('compatibilityTitle')), diff --git a/include/Pages/ContactPage.php b/include/Pages/ContactPage.php index 2b9794c2..4495e21c 100644 --- a/include/Pages/ContactPage.php +++ b/include/Pages/ContactPage.php @@ -1,4 +1,6 @@ renderPage( array( 'title' => $Smarty->getConfigVars('creditsTitle'), diff --git a/include/Pages/DemosPage.php b/include/Pages/DemosPage.php index 52e8ed92..9bd7758c 100644 --- a/include/Pages/DemosPage.php +++ b/include/Pages/DemosPage.php @@ -1,4 +1,6 @@ getRecommendedDownloadsJS($downloads); global $Smarty; - + return $this->renderPage( array( 'title' => $Smarty->getConfigVars('downloadsTitle'), diff --git a/include/Pages/ExceptionsPage.php b/include/Pages/ExceptionsPage.php index b9172522..15bdfb00 100644 --- a/include/Pages/ExceptionsPage.php +++ b/include/Pages/ExceptionsPage.php @@ -1,4 +1,6 @@ renderPage( array( 'title' => $Smarty->getConfigVars('linksTitle'), diff --git a/include/Pages/NewsPage.php b/include/Pages/NewsPage.php index 2d864d84..d48c02f7 100644 --- a/include/Pages/NewsPage.php +++ b/include/Pages/NewsPage.php @@ -1,4 +1,6 @@