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

github.com/nextcloud/registration.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPellaeon Lin <nfsmwlin@gmail.com>2016-02-19 09:30:00 +0300
committerPellaeon Lin <nfsmwlin@gmail.com>2016-02-19 09:30:00 +0300
commite271ac1c0c25909eaf898bee82745a57d1bbb777 (patch)
treefc58518ccfc3a7362cc5635ddafa8158364c6b7d
parent00833216aecbcf90a107da0a2c6ccfbdacb96c3f (diff)
Update# advices on publishing appv0.1.2
-rw-r--r--appinfo/info.xml4
-rw-r--r--js/script.js31
-rw-r--r--templates/email.validate_plaintext.php2
3 files changed, 3 insertions, 34 deletions
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 7a5fee8..bdb5244 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -5,8 +5,8 @@
<description>User registration</description>
<licence>AGPL</licence>
<author>Pellaeon Lin</author>
- <version>0.1.1</version>
+ <version>0.1.2</version>
<dependencies>
- <owncloud min-version="8.1" max-version="10.0"/>
+ <owncloud min-version="8.1" max-version="8.2"/>
</dependencies>
</info>
diff --git a/js/script.js b/js/script.js
deleted file mode 100644
index 64dbc80..0000000
--- a/js/script.js
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * ownCloud - registration
- *
- * This file is licensed under the Affero General Public License version 3 or
- * later. See the COPYING file.
- *
- * @author Pellaeon Lin <pellaeon@hs.ntnu.edu.tw>
- * @copyright Pellaeon Lin 2014
- */
-
-(function ($, OC) {
-
- $(document).ready(function () {
- $('#hello').click(function () {
- alert('Hello from your script file');
- });
-
- $('#echo').click(function () {
- var url = OC.generateUrl('/apps/registration/echo');
- var data = {
- echo: $('#echo-content').val()
- };
-
- $.post(url, data).success(function (response) {
- $('#echo-result').text(response.echo);
- });
-
- });
- });
-
-})(jQuery, OC); \ No newline at end of file
diff --git a/templates/email.validate_plaintext.php b/templates/email.validate_plaintext.php
index 0503599..4a1dbdb 100644
--- a/templates/email.validate_plaintext.php
+++ b/templates/email.validate_plaintext.php
@@ -1,3 +1,3 @@
<?php
echo $l->t("To create a new account on %s, just click the following link:", [$_['sitename']]);
-echo str_replace('{link}', $_['link'], "\n\n{link}");
+echo "\n\n".$_['link'];