From 5b50aa689ed04176a6ece7188a7589bee5de8061 Mon Sep 17 00:00:00 2001 From: Martynas Barzda Date: Mon, 29 Oct 2012 17:30:50 +0200 Subject: [PATCH 1/3] Install script: updated $system_timezone Get system timezone with date_default_timezone_get() function --- install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.php b/install.php index 5f98e54..f7a6142 100644 --- a/install.php +++ b/install.php @@ -11,7 +11,7 @@ if ( ! defined('MONSTRA_ACCESS')) define('MONSTRA_ACCESS', true); // Set default timezone - $system_timezone = 'Kwajalein'; + $system_timezone = date_default_timezone_get(); // Load bootstrap file require_once(ROOT . DS . 'monstra' . DS . 'bootstrap.php'); From 029e8be63464f156b42c23fa837bdda8184a9903 Mon Sep 17 00:00:00 2001 From: Martynas Barzda Date: Mon, 29 Oct 2012 19:35:41 +0200 Subject: [PATCH 2/3] Install script: update languages list --- install.php | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/install.php b/install.php index f7a6142..21ea38b 100644 --- a/install.php +++ b/install.php @@ -31,9 +31,12 @@ // Directories to check $dir_array = array('public', 'storage', 'backups', 'tmp'); + // Languages array + $languages_array = array('en', 'ru', 'lt', 'it', 'de', 'pt-br'); + // Select Monstra language if (Request::get('language')) { - if (in_array(Request::get('language'), array('en', 'ru', 'lt', 'it', 'de', 'pt-br'))) { + if (in_array(Request::get('language'), $languages_array)) { if (Option::update('language', Request::get('language'))) { Request::redirect($site_url); } @@ -153,13 +156,14 @@ color: #F74C18; } - .sep { - color:#ccc; - } - .language-link { color:#7A7A7C; } + + .language-link+.language-link:before { + color: #ccc; + content: ' | '; + } .language-link:hover { color:#000; @@ -228,12 +232,9 @@
- en | - it | - lt | - de | - pt | - ru + + +
From 823d712a1b2a735743aebe5ddaef285c6aa0308c Mon Sep 17 00:00:00 2001 From: Martynas Barzda Date: Mon, 29 Oct 2012 19:51:01 +0200 Subject: [PATCH 3/3] Install script: updates --- install.php | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/install.php b/install.php index 21ea38b..0bbdfe6 100644 --- a/install.php +++ b/install.php @@ -1,10 +1,10 @@
- - - + + +
@@ -405,9 +406,9 @@ } if (is_writable(__FILE__)){ - echo '
  • '.__('Install script writable', 'system').'
  • '; + echo '
  • '.__('Install script writable', 'system').'
  • '; } else { - echo '
  • '.__('Install script not writable', 'system').'
  • '; + echo '
  • '.__('Install script not writable', 'system').'
  • '; } if (is_writable('sitemap.xml')){ @@ -446,4 +447,4 @@ - + \ No newline at end of file