Changed variable name because Eloy has plans for $CFG->filtermatchoneperpage :-)
This commit is contained in:
+1
-1
@@ -209,7 +209,7 @@ $CFG->admin = 'admin';
|
||||
//
|
||||
// Enabling this will make most text-based filters only match the first time
|
||||
// a phrase occurs in a given text. Otherwise all are matched.
|
||||
// $CFG->filtermatchfirstonly = true;
|
||||
// $CFG->filtermatchonepertext = true;
|
||||
|
||||
//=========================================================================
|
||||
// ALL DONE! To continue installation, visit your main page with a browser
|
||||
|
||||
+1
-1
@@ -149,7 +149,7 @@ function filter_phrases ($text, $link_array, $ignoretagsopen=NULL, $ignoretagscl
|
||||
}
|
||||
|
||||
/// Finally we do our highlighting
|
||||
if (!empty($CFG->filtermatchfirstonly)) {
|
||||
if (!empty($CFG->filtermatchonepertext)) {
|
||||
$text = preg_replace('/('.$linkobject->phrase.')/'.$modifiers,
|
||||
$linkobject->hreftagbegin.'$1'.$linkobject->hreftagend, $text, 1);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user