1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Correzione nomi di alcune funzioni

Correzione delle funzioni
- starts_with in string_starts_with
- ends_with in string_ends_with
- str_contains in string_contains
- str_to_lower in string_lowercase
- str_to_upper in string_uppercase
per maggiore coerenza e per evitare problemi con PHP 8.
This commit is contained in:
Dasc3er
2020-10-29 16:48:37 +01:00
parent 5fe1a5cf59
commit fdd130bf1b
44 changed files with 82 additions and 82 deletions

View File

@@ -40,7 +40,7 @@ if (!empty($id_record)) {
Util\Query::setSegments(true);
}
// Replace automatico del campo deleted_at se non specifico a una tabella
if (!str_contains($query, '.`deleted_at`') && !str_contains($query, '.deleted_at')) {
if (!string_contains($query, '.`deleted_at`') && !string_contains($query, '.deleted_at')) {
$query = str_replace(['AND `deleted_at` IS NULL', '`deleted_at` IS NULL AND', '`deleted_at` IS NULL', 'AND deleted_at IS NULL', 'deleted_at IS NULL AND', 'deleted_at IS NULL'], '', $query);
}
@@ -106,7 +106,7 @@ if (empty($record) || !$has_access) {
echo '
</a>
</li>';
$hide_left_sidebar = Auth::check() && (setting('Nascondere la barra dei plugin di default'));
echo '
@@ -126,9 +126,9 @@ if (empty($record) || !$has_access) {
$(".control-sidebar-toggle").bind("click", function() {
$("aside.content-wrapper, .main-footer").toggleClass("with-control-sidebar");
$(".control-sidebar").toggleClass("control-sidebar-shown");
});
});
</script>
</ul>