1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

Regex fixes and path fix for TinyMce.

This commit is contained in:
Cameron
2020-12-18 13:07:45 -08:00
parent 5988595989
commit 7238743542
9 changed files with 13 additions and 10 deletions

View File

@@ -3600,7 +3600,7 @@ class e_tree_model extends e_front_model
protected function prepareSimulatedPagination()
{
$db_query = $this->getParam('db_query');
$db_query = preg_replace_callback("/LIMIT ([\d]+)[ ]*(?:,|OFFSET){0,1}[ ]*([\d]*)/i", function($matches)
$db_query = preg_replace_callback("/LIMIT ([\d]+)[ ]*(?:,|OFFSET)?[ ]*([\d]*)/i", function($matches)
{
// Count only
if (empty($matches[2]))