Fixed some package info errors
Jeremy D

Jeremy D commited on 2022-02-27 13:26:37
Showing 2 changed files, with 12 additions and 3 deletions.

... ...
@@ -3,7 +3,7 @@
3 3
  * The Main file for Hibp
4 4
  * @package Hibp
5 5
  * @author SleePy <sleepy @ simplemachines (dot) org>
6
- * @copyright 2021
6
+ * @copyright 2022
7 7
  * @license 3-Clause BSD https://opensource.org/licenses/BSD-3-Clause
8 8
  * @version 1.0
9 9
  */
... ...
@@ -7,13 +7,19 @@
7 7
 	<type>modification</type>
8 8
 
9 9
 	<install for="2.1.*">
10
+		<!-- language files -->
10 11
 		<require-file name="language/Hibp.english.php" destination="$themes_dir/default/languages" />
12
+
13
+		<!-- script files -->
14
+		<require-file name="sha1.js" destination="$themes_dir/default/scripts" />
15
+
16
+		<!-- source files -->
11 17
 		<require-file name="Hibp.php" destination="$sourcedir" />
12 18
 
13 19
 		<!-- All the hooks -->
14 20
 		<hook hook="integrate_validatePassword" function="hibp_validatePassword" file="$sourcedir/Hibp.php" />
15 21
 		<hook hook="integrate_setup_profile_context" function="hibp_setup_profile_context" file="$sourcedir/Hibp.php" />
16
-		<hook hook="integrate_load_custom_profile_fields" function="hibp_validatePassword" file="$sourcedir/Hibp.php" />
22
+		<hook hook="integrate_load_custom_profile_fields" function="hibp_load_custom_profile_fields" file="$sourcedir/Hibp.php" />
17 23
 		<hook hook="integrate_general_security_settings" function="hibp_general_security_settings" file="$sourcedir/Hibp.php" />
18 24
 
19 25
 		<redirect url="$scripturl?action=admin;area=serversettings;sa=security;$session_var=$session_id" />
... ...
@@ -23,9 +29,12 @@
23 29
 		<!-- All the hooks, removed -->
24 30
 		<hook reverse="true" hook="integrate_validatePassword" function="hibp_validatePassword" file="$sourcedir/Hibp.php" />
25 31
 		<hook reverse="true" hook="integrate_setup_profile_context" function="hibp_setup_profile_context" file="$sourcedir/Hibp.php" />
26
-		<hook reverse="true" hook="integrate_load_custom_profile_fields" function="hibp_validatePassword" file="$sourcedir/Hibp.php" />
32
+		<hook reverse="true" hook="integrate_load_custom_profile_fields" function="hibp_load_custom_profile_fields" file="$sourcedir/Hibp.php" />
27 33
 		<hook reverse="true" hook="integrate_general_security_settings" function="hibp_general_security_settings" file="$sourcedir/Hibp.php" />
28 34
 
35
+		<!-- script files, removed -->
36
+		<remove-file name="$themes_dir/default/scripts/sha1.js" />
37
+
29 38
 		<!-- language files, removed -->
30 39
 		<remove-file name="$themes_dir/default/languages/Hibp.english.php" />
31 40
 
32 41