From e271ac1c0c25909eaf898bee82745a57d1bbb777 Mon Sep 17 00:00:00 2001 From: Pellaeon Lin Date: Fri, 19 Feb 2016 14:30:00 +0800 Subject: [PATCH] Update# advices on publishing app --- appinfo/info.xml | 4 ++-- js/script.js | 31 -------------------------- templates/email.validate_plaintext.php | 2 +- 3 files changed, 3 insertions(+), 34 deletions(-) delete mode 100644 js/script.js 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 @@ User registration AGPL Pellaeon Lin - 0.1.1 + 0.1.2 - + 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 - * @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 @@ 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'];