Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattpiwik <matthieu.aubry@gmail.com>2007-09-21 18:37:17 +0400
committermattpiwik <matthieu.aubry@gmail.com>2007-09-21 18:37:17 +0400
commitc8919606501af049598c92eec0d6d18ed174be59 (patch)
treef4ac7c631790d960d995309dc5c40820d395668d /plugins/Installation/FormFirstWebsiteSetup.php
parent930452ad08674a61e86d2420c390f11d03536276 (diff)
Redo the exception handler to display a nice error message with link to piwik.org
Improved error message when PDO is not enabled Now setting a table prefix is not mandatory (prefix can be empty) improved UI for website URL removed test for php_xml as we dont use yet the utf8_encode/decode git-svn-id: http://dev.piwik.org/svn/trunk@108 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/Installation/FormFirstWebsiteSetup.php')
-rw-r--r--plugins/Installation/FormFirstWebsiteSetup.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Installation/FormFirstWebsiteSetup.php b/plugins/Installation/FormFirstWebsiteSetup.php
index 6c4add5148..861a38bec5 100644
--- a/plugins/Installation/FormFirstWebsiteSetup.php
+++ b/plugins/Installation/FormFirstWebsiteSetup.php
@@ -6,9 +6,12 @@ class Piwik_Installation_FormFirstWebsiteSetup extends Piwik_Form
{
$urlToGoAfter = Piwik_Url::getCurrentUrl();
+ $urlExample = 'http://example.org';
+ $javascriptOnClickUrlExample = "\"javascript:if(this.value=='$urlExample'){this.value='http://';} this.style.color='black';\"";
+
$formElements = array(
array('text', 'name', 'website name'),
- array('text', 'url', 'website URL'),
+ array('text', 'url', 'website URL', "style='color:rgb(153, 153, 153);' value=$urlExample onfocus=".$javascriptOnClickUrlExample." onclick=".$javascriptOnClickUrlExample),
);
$this->addElements( $formElements );