summaryrefslogtreecommitdiffstats
path: root/system/user
diff options
context:
space:
mode:
Diffstat (limited to 'system/user')
-rw-r--r--system/user/list.php5
-rw-r--r--system/user/main.php13
2 files changed, 10 insertions, 8 deletions
diff --git a/system/user/list.php b/system/user/list.php
index 1f29473..b724fe8 100644
--- a/system/user/list.php
+++ b/system/user/list.php
@@ -1,8 +1,9 @@
<?php
#===============================================================================
-# INCLUDE: Main configuration
+# Get instances
#===============================================================================
-require_once '../../core/application.php';
+$Database = Application::getDatabase();
+$Language = Application::getLanguage();
$site_size = Application::get('USER.LIST_SIZE');
$site_sort = Application::get('USER.LIST_SORT');
diff --git a/system/user/main.php b/system/user/main.php
index 79f4222..7dcd6da 100644
--- a/system/user/main.php
+++ b/system/user/main.php
@@ -1,19 +1,20 @@
<?php
#===============================================================================
-# INCLUDE: Main configuration
+# Get instances
#===============================================================================
-require_once '../../core/application.php';
+$Database = Application::getDatabase();
+$Language = Application::getLanguage();
#===============================================================================
# TRY: User\Exception
#===============================================================================
try {
if(Application::get('USER.SLUG_URLS')) {
- $User = User\Factory::buildBySlug(HTTP::GET('param'));
+ $User = User\Factory::buildBySlug($param);
}
else {
- $User = User\Factory::build(HTTP::GET('param'));
+ $User = User\Factory::build($param);
}
$user_data = generateUserItemData($User);
@@ -83,9 +84,9 @@ try {
catch(User\Exception $Exception) {
try {
if(Application::get('USER.SLUG_URLS') === FALSE) {
- $User = User\Factory::buildBySlug(HTTP::GET('param'));
+ $User = User\Factory::buildBySlug($param);
} else {
- $User = User\Factory::build(HTTP::GET('param'));
+ $User = User\Factory::build($param);
}
HTTP::redirect($User->getURL());