Skip to content

Commit 0a2d5e3

Browse files
committed
2.5.4-fork becomes 2.6.0-fork, changing docs.
Renamed 2.5.4 → 2.6.0. Documenting undocumented functions.
1 parent 44a2c86 commit 0a2d5e3

17 files changed

Lines changed: 46 additions & 66 deletions

‎do_test.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function do_test_mobile_page_content($property)
115115
*
116116
* @return void
117117
*
118-
* @since 2.5.4-fork Function rewrote and no longer deprecated
118+
* @since 2.6.0-fork Function rewrote and no longer deprecated
119119
*/
120120
function do_test_mobile_page($property)
121121
{
@@ -221,7 +221,7 @@ function do_test_desktop_page($property)
221221
* @param string $p Some property to add to the URL of do_test_test.php.
222222
*
223223
* @since 2.2.1 The $mobile parameter is no longer required.
224-
* @since 2.5.4 Mobile interface is back and self-set.
224+
* @since 2.6.0 Mobile interface is back and self-set.
225225
*
226226
* @return void
227227
*/

‎do_test_test.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ function get_test_type()
7373
/**
7474
* Prepare the css code for tests.
7575
*
76-
* @deprecated 2.5.4-fork Do not use this function since it was acusing wrong
77-
* display. Will be removed in 2.6.0.
76+
* @deprecated 2.6.0-fork Do not use this function since it was causing wrong
77+
* display. Will be removed in 3.0.0.
7878
*
7979
* @return void
8080
*/

‎do_text.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function get_text_id()
4646
* @return void
4747
*
4848
* @since 2.2.1 It also calls do_frameset_mobile_css and do_frameset_mobile_js
49-
* @since 2.5.4-fork Rewrote to match the desktop version (between 2.2.1 and 2.5.4)
49+
* @since 2.6.0-fork Rewrote to match the desktop version (between 2.2.1 and 2.6.0)
5050
*/
5151
function do_text_mobile_content($textid, $audio)
5252
{

‎docs/CHANGELOG.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ For git tags, official releases are marked like "v1.0.0", while unofficial ones
99
* Frames resizing is back! The text reading and test interfaces updated in several ways. Based several suggestions as [#60](https://github.com/HugoFara/lwt/issues/60).
1010
* The desktop interface is now much similar to what it was before 2.2.1-fork.
1111
* The mobile interface for texts unchanged (2.2.1-fork to 2.5.3-fork).
12-
* You can resize frames on desktop.
12+
* You can resize frames on desktop.
13+
* Many new functions officially introduced in PHP and JS. Some of these function were already present in the code but undocumented.
1314

1415
### Changed
1516
* UX: Faster testing: you do no longer need to enter "Space" first for speed testing, except for status down and change. Related to [#71](https://github.com/HugoFara/lwt/pull/71).

‎docs/info.html‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1922,9 +1922,10 @@ <h4>Added</h4>
19221922
<ul>
19231923
<li>The desktop interface is now much similar to what it was before 2.2.1-fork.</li>
19241924
<li>The mobile interface for texts unchanged (2.2.1-fork to 2.5.3-fork).</li>
1925+
<li>You can resize frames on desktop.</li>
19251926
</ul>
19261927
</li>
1927-
<li>You can resize frames on desktop.</li>
1928+
<li>Many new functions officially introduced in PHP and JS. Some of these function were already present in the code but undocumented.</li>
19281929
</ul>
19291930
<h4>Changed</h4>
19301931
<ul>

‎edit_texts.php‎

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -904,30 +904,11 @@ function edit_texts_other_pages($recno)
904904
*
905905
* @return void
906906
*
907-
* @since 2.5.4-fork Audio was never shown
907+
* @since 2.6.0-fork Audio was never shown
908908
*/
909909
function edit_texts_show_text_row($txrecord, $currentlang, $statuses)
910910
{
911911
$txid = $txrecord['TxID'];
912-
/*
913-
Added by merge and makes statistics crash. To be removed?
914-
if ($showCounts) {
915-
flush();
916-
echo "ID" . $record['TxID'];
917-
$txttotalwords = textwordcount($record['TxID']);
918-
$txtworkedwords = textworkcount($record['TxID']);
919-
$txtworkedexpr = textexprcount($record['TxID']);
920-
$txtworkedall = $txtworkedwords + $txtworkedexpr;
921-
$txttodowords = $txttotalwords - $txtworkedwords;
922-
$percentunknown = 0;
923-
if ($txttotalwords != 0) {
924-
$percentunknown =
925-
round(100*$txttodowords/$txttotalwords,0);
926-
if ($percentunknown > 100) $percentunknown = 100;
927-
if ($percentunknown < 0) $percentunknown = 0;
928-
}
929-
}
930-
*/
931912
if (isset($txrecord['TxAudioURI'])) {
932913
$audio = trim($txrecord['TxAudioURI']);
933914
} else {

‎inc/ajax_save_setting.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* @link https://hugofara.github.io/lwt/docs/html/ajax__save__setting_8php.html
1313
* @since 1.2.1
1414
* @since 2.2.2-fork Refactored, use will GET methods
15-
* @since 2.5.4-fork Use POST method in priority
15+
* @since 2.6.0-fork Use POST method in priority
1616
*/
1717

1818
require_once __DIR__ . '/session_utility.php';

‎inc/database_connect.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function runsql($sql, $m, $sqlerrdie = true): string
7575
*
7676
* @return float|int|string|null Any returned value from the database.
7777
*
78-
* @since 2.5.4-fork Officially return numeric types.
78+
* @since 2.6.0-fork Officially return numeric types.
7979
*/
8080
function get_first_value($sql)
8181
{

‎inc/mobile_interactions.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @since 2.2.0
1111
* @since 2.2.1 You should not longer use this library as mobile detect is removed.
1212
* However, this interface is unchanged for backward compatibility.
13-
* @since 2.5.4 Mobile detect is back and does no longer use external libraries.
13+
* @since 2.6.0 Mobile detect is back and does no longer use external libraries.
1414
*/
1515

1616
require_once __DIR__ . '/database_connect.php';
@@ -21,7 +21,7 @@
2121
* @return false Mobile mode shoud be activated or not
2222
*
2323
* @since 2.2.1 You should not use this function since mobiledetect is no longer used.
24-
* @since 2.5.4-fork No longer deprecated and use no external library.
24+
* @since 2.6.0-fork No longer deprecated and use no external library.
2525
*/
2626
function is_mobile(): bool
2727
{
@@ -87,7 +87,7 @@ function do_frameset_mobile_page_content($frame_h_uri, $frame_l_uri, $right_fram
8787
*
8888
* @return void
8989
*
90-
* @deprecated Since 2.5.4-fork, the display for mobile changed, making this code
90+
* @deprecated Since 2.6.0-fork, the display for mobile changed, making this code
9191
* useless
9292
*/
9393
function do_frameset_mobile_css()

‎inc/save_setting_redirect.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
*
66
* Call: save_setting_redirect.php?k=[key]&v=[value]&u=[RedirURI]
77
*
8-
* @since 2.5.4-fork You can omit either u, or (k, v).
8+
* @since 2.6.0-fork You can omit either u, or (k, v).
99
*/
1010

1111
namespace SaveSetting;
1212

1313
require_once __DIR__ . '/session_utility.php';
1414

15-
/*
15+
/**
1616
* Return the parameters from the URL.
1717
*
1818
* @return array{0: string, 1: string, 2: string} Setting key, setting value
@@ -26,7 +26,7 @@ function get_parameters(): array
2626
return array($k, $v, $url);
2727
}
2828

29-
/*
29+
/**
3030
* Unset all session settings, and set current text to default.
3131
*
3232
* @return void
@@ -71,7 +71,7 @@ function unset_settings(): void
7171

7272
}
7373

74-
/*
74+
/**
7575
* Save settings and go to a page.
7676
*
7777
* @param string k Setting key

0 commit comments

Comments
 (0)