mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Fixes #707 - {CPAGERELATED: types=page} issue.
This commit is contained in:
@@ -54,7 +54,7 @@ class page_related // replace 'e_' with 'plugin-folder_'
|
||||
$items = array();
|
||||
|
||||
|
||||
$tag_regexp = "'(^|, )(".str_replace(",", "|", $tags).")(,|$)'";
|
||||
$tag_regexp = "'(^|,)(".str_replace(",", "|", $tags).")(,|$)'";
|
||||
|
||||
$query = "SELECT * FROM #page WHERE page_id != ".$parm['current']." AND page_class REGEXP '".e_CLASS_REGEXP."' AND page_metakeys REGEXP ".$tag_regexp." ORDER BY page_datestamp DESC LIMIT ".$parm['limit'];
|
||||
|
||||
|
Reference in New Issue
Block a user