Skip to content

Commit 83b02ed

Browse files
committed
Merge branch 'release-3.0' of github.com:Simplemachines/SMF into reactions
2 parents 0bba20a + d81420f commit 83b02ed

37 files changed

+294
-185
lines changed

Languages/en_US/Help.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@
258258
$helptxt['cache_enable'] = 'SMF performs caching at a variety of levels. The higher the level of caching enabled the more CPU time will be spent retrieving cached information. If caching is available on your machine it is recommended that you try caching at level 1 first.';
259259
$helptxt['cache_memcached'] = 'If you are using memcached you need to provide the server details. This should be entered as a comma separated list as shown in the example below:<br><br> &quot;server1,server2,server3:port,server4&quot;<br><br>Note that if no port is specified SMF will use port 11211 unless the host contains a slash, then it is assumed to be an alternative transport and the port will be set to 0. SMF will attempt to perform rough/random load balancing across the specified servers.';
260260
$helptxt['cache_cachedir'] = 'This setting is only for the smf file-based cache system. It specifies the path to the cache directory. It is recommended that you place this in /tmp/ if you are going to use this, although it will work in any directory';
261-
$helptxt['cache_sqlite_cachedir'] = 'This setting is only for the SQLite database cache system. It specifies the path to the cache directory. It is recommended that you place this in /tmp/ if you are going to use this, although it will work in any directory';
261+
$helptxt['cache_sqlite_cachedir'] = 'This setting is only for the SQLite database cache system. It specifies the path to the cache directory. It is recommended that you place this in /tmp/ if you are going to use this, although it will work in any directory<br>';
262262
$helptxt['enableErrorLogging'] = 'This will log any errors, like a failed login, so you can see what went wrong.';
263263
$helptxt['enableErrorQueryLogging'] = 'This will include the full query sent to the database in the error log. It requires error logging to be turned on.<br><br><strong>Note: This will affect the ability to filter the error log by the error message.</strong>';
264264
$helptxt['disallow_sendBody'] = 'This setting removes the option to receive the text of replies, posts, and personal messages in notification emails.<br><br>Often, members will reply to the notification email, which in most cases means the webmaster receives the reply.';

Languages/en_US/ManageSettings.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@
152152
$txt['cache_memcached_settings'] = 'Memcache/Memcached settings';
153153
$txt['cache_memcached_servers'] = 'Memcache/Memcached servers';
154154
$txt['cache_memcached_servers_subtext'] = 'Example: 127.0.0.1:11211,127.0.0.2';
155+
$txt['cache_sqlite_wal'] = 'Enable SQLite3 WAL';
156+
$txt['cache_sqlite_wal_subtext'] = 'Read <a href="https://www.sqlite.org/wal.html">Write-Ahead Logging</a> documentation prior to using. If you enable then disable this setting, the database will become readonly.';
155157

156158
$txt['loadavg_warning'] = 'Please note: the settings below are to be edited with care. Setting any of them too low may render your forum <strong>unusable</strong>!';
157159
$txt['loadavg_enable'] = 'Enable load balancing by load averages';

Sources/Actions/Admin/ACP.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
use SMF\Menu;
3131
use SMF\Parser;
3232
use SMF\Routable;
33+
use SMF\Sapi;
3334
use SMF\SecurityToken;
3435
use SMF\Theme;
3536
use SMF\Url;
@@ -794,7 +795,7 @@ public function execute(): void
794795

795796
// Now - finally - call the right place!
796797
if (isset($menu->include_data['file'])) {
797-
require_once Config::canonicalPath(Config::$sourcedir . '/' . $menu->include_data['file']);
798+
require_once Sapi::canonicalPath(Config::$sourcedir . '/' . $menu->include_data['file']);
798799
}
799800

800801
// Get the right callable.
@@ -1902,7 +1903,7 @@ protected function init()
19021903
]);
19031904

19041905
if (file_exists($include)) {
1905-
require_once Config::canonicalPath($include);
1906+
require_once Sapi::canonicalPath($include);
19061907
}
19071908
}
19081909
}

Sources/Actions/Admin/Find.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public function internal(): void
196196
IntegrationHook::call('integrate_admin_search', [&$this->language_files, &$this->include_files, &$this->settings_search]);
197197

198198
foreach ($this->include_files as $file) {
199-
require_once Config::canonicalPath(Config::$sourcedir . '/' . $file . '.php');
199+
require_once Sapi::canonicalPath(Config::$sourcedir . '/' . $file . '.php');
200200
}
201201

202202
/* This is the huge array that defines everything... it's a huge array of items formatted as follows:

Sources/Actions/Admin/Languages.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
use SMF\Menu;
2929
use SMF\PackageManager\PackageUtils;
3030
use SMF\PackageManager\XmlArray;
31+
use SMF\Sapi;
3132
use SMF\SecurityToken;
3233
use SMF\Theme;
3334
use SMF\User;
@@ -905,7 +906,7 @@ function ($val1, $val2) {
905906
// Quickly load General language entries.
906907
$old_txt = Lang::$txt;
907908

908-
require Config::canonicalPath($general_filename);
909+
require Sapi::canonicalPath($general_filename);
909910

910911
Utils::$context['lang_file_not_writable_message'] = is_writable($general_filename) ? '' : Lang::getTxt('lang_file_not_writable', ['file' => $general_filename], file: 'ManageSettings');
911912

Sources/Actions/Admin/Logs.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
use SMF\IntegrationHook;
2424
use SMF\Lang;
2525
use SMF\Menu;
26+
use SMF\Sapi;
2627
use SMF\Theme;
2728
use SMF\User;
2829
use SMF\Utils;
@@ -156,7 +157,7 @@ public function execute(): void
156157
];
157158

158159
if (!empty(self::$subactions[$this->subaction][0])) {
159-
require_once Config::canonicalPath(Config::$sourcedir . '/' . self::$subactions[$this->subaction][0]);
160+
require_once Sapi::canonicalPath(Config::$sourcedir . '/' . self::$subactions[$this->subaction][0]);
160161
}
161162

162163
$call = \is_string(self::$subactions[$this->subaction][1]) && method_exists($this, self::$subactions[$this->subaction][1]) ? [$this, self::$subactions[$this->subaction][1]] : Utils::getCallable(self::$subactions[$this->subaction][1]);

Sources/Actions/Admin/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ public function export(): void
554554
ACP::saveDBSettings($config_vars);
555555

556556
// Create the new directory, but revert to the previous one if anything goes wrong.
557-
require_once Config::canonicalPath(Config::$sourcedir . '/Actions/Profile/Export.php');
557+
require_once Sapi::canonicalPath(Config::$sourcedir . '/Actions/Profile/Export.php');
558558
create_export_dir($prev_export_dir);
559559

560560
// Ensure we don't lose track of any existing export files.

Sources/Actions/Admin/Subscriptions.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
use SMF\Lang;
2727
use SMF\Menu;
2828
use SMF\Parser;
29+
use SMF\Sapi;
2930
use SMF\SecurityToken;
3031
use SMF\TaskRunner;
3132
use SMF\Theme;
@@ -2099,7 +2100,7 @@ public static function loadPaymentGateways(): array
20992100
fclose($fp);
21002101

21012102
if (str_contains($header, '// SMF Payment Gateway: ' . strtolower($matches[1]))) {
2102-
require_once Config::canonicalPath(Config::$sourcedir . '/' . $file);
2103+
require_once Sapi::canonicalPath(Config::$sourcedir . '/' . $file);
21032104

21042105
$gateways[] = [
21052106
'filename' => $file,

Sources/Actions/Moderation/Main.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
use SMF\Lang;
2626
use SMF\Menu;
2727
use SMF\Routable;
28+
use SMF\Sapi;
2829
use SMF\Theme;
2930
use SMF\User;
3031
use SMF\Utils;
@@ -240,7 +241,7 @@ public function execute(): void
240241
$this->createMenu();
241242

242243
if (isset(Menu::$loaded['moderate']->include_data['file'])) {
243-
require_once Config::canonicalPath(Config::$sourcedir . '/' . Menu::$loaded['moderate']->include_data['file']);
244+
require_once Sapi::canonicalPath(Config::$sourcedir . '/' . Menu::$loaded['moderate']->include_data['file']);
244245
}
245246

246247
$call = \is_string(Menu::$loaded['moderate']->include_data['function']) && method_exists($this, Menu::$loaded['moderate']->include_data['function']) ? [$this, Menu::$loaded['moderate']->include_data['function']] : Utils::getCallable(Menu::$loaded['moderate']->include_data['function']);

Sources/Actions/Profile/Main.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ public function execute(): void
647647

648648
// File to include?
649649
if (!empty($menu->include_data['file'])) {
650-
require_once Config::canonicalPath(Config::$sourcedir . '/' . $menu->include_data['file']);
650+
require_once Sapi::canonicalPath(Config::$sourcedir . '/' . $menu->include_data['file']);
651651
}
652652

653653
// Build the link tree.

0 commit comments

Comments
 (0)