aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorCamil Staps2016-08-01 14:11:06 +0200
committerCamil Staps2016-08-01 14:11:06 +0200
commit46198a89ccc8e6750a37e1b9127f57238242fadf (patch)
treede6c0bc2f55b759a0db6471fc0b820ee5433e648 /index.php
parentUse Model::search in child::get* methods (diff)
Array shorthands
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index 0a27ed1..7dd2be3 100644
--- a/index.php
+++ b/index.php
@@ -35,7 +35,7 @@ $_request = str_replace(Constants::url_internal, '', $_request);
// This is the REQUEST_URI switch
// The default shows a 404 page
-$pages = array(
+$pages = [
'/' => './include/home.php',
'/clients' => './include/clients.php',
'/clients/new' => './include/clients-new.php',
@@ -59,7 +59,7 @@ $pages = array(
'/ajax/email/offer' => './include/ajax-email-offer.php',
'/pay' => './include/pay.php',
'/file/get' => './include/file-get.php'
-);
+];
$_page = null;
foreach ($pages as $uri => $path) {