Browse code

Reintroduce Number of Likes ratings option - 3.5.7 still references this, and the definition conflict is solved. This would have been an issue in future PHP 9.

Clarissa Walker authored on 2026/07/16 16:58:05
Showing 3 changed files
... ...
@@ -558,6 +558,7 @@ else if(isset($_POST['submit'])) {
558 558
 		</tr>
559 559
 		<tr>
560 560
 				<td><label for='newratings'>"._WHATRATINGS.":</label></td><td><select name='newratings'>
561
+				<option value='3'".($ratings == "3" ? " selected" : "").">"._LIKES_NUMBER_SYS."</option>
561 562
 				<option value='2'".($ratings == "2" ? " selected" : "").">"._LIKESYS."</option>
562 563
 				<option value='1'".($ratings == "1" ? " selected" : "").">"._STARS."</option>
563 564
 				<option value='0'".($ratings == "0" ? " selected" : "").">"._NONE."</option>
... ...
@@ -63,6 +63,7 @@ define ("_GO", "Go");
63 63
 define ("_HALFSTAR", "half-star");
64 64
 define ("_JAVASCRIPTOFF", "You must have javascript enabled for this form to work properly."); // Modified for version 3.0
65 65
 define ("_LIKE", "like");
66
+define ("_LIKES_NUMBER", "Number of Likes");
66 67
 define ("_LOGIN", "Log In");
67 68
 define ("_PLEASELOGIN", "Please login to access this feature.");
68 69
 define ("_MEMBER", "Member");
... ...
@@ -443,4 +444,4 @@ define ("_RULESVIOLATION", "Violation of Rules");
443 444
 define ("_BUGREPORT", "Bug Report");
444 445
 define ("_REPORTTHIS", "Report This");
445 446
 
446
-?>
447 447
\ No newline at end of file
448
+?>
... ...
@@ -132,7 +132,7 @@ define ("_INSTALLMODULE", "Install this module");
132 132
 define ("_LANGUAGE", "Language");
133 133
 define ("_LEVEL", "Level");
134 134
 define ("_LIKESYS", "Like/Dislike"); // Changed to avoid conflict with user _LIKE declaration
135
-if (!defined("_LIKES_NUMBER")) define("_LIKES_NUMBER", "Number of Likes");  
135
+define ("_LIKES_NUMBER_SYS", "Number of Likes");
136 136
 define ("_LINKACCESS", "Link Access Level"); 
137 137
 define ("_LINKKEY", "Link Access Key");
138 138
 define ("_LINKRANGE", "Size of Range for Page Links");