diff options
-rw-r--r-- | appinfo/info.xml | 4 | ||||
-rw-r--r-- | js/script.js | 31 | ||||
-rw-r--r-- | templates/email.validate_plaintext.php | 2 |
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']; |