Jump to content

(RIESENIE) Problem s vyhladavanim - chyba preg_replace


Recommended Posts

Riesenie problemu s vyhladavanim:


- otvorte subor: classes/Search.php


- najdite definiciu PREG_CLASS_SEARCH_EXCLUDE


- posledne jej riadky vyzeraju nasledovne:






- nahradit ich:


'\x{a80b}\x{a823}-\x{a82b}\x{f8ff}\x{fb1e}\x{fb29}\x{fd3e}\x{fd3f}\x{fdfc}-' .

'\x{fe6b}\x{feff}-\x{ff0f}\x{ff1a}-\x{ff20}\x{ff3b}-\x{ff40}\x{ff5b}-\x{ff65}' .


  • Like 1

Share this post

Link to post
Share on other sites

  • 1 month later...

tiez dakujem,

hladal som to na anglickom fore a nic, podozrieval som

nastavenia php na hostingu, tfuj, nemam rad regexpy.



nakoniec som to Q&D riesil zakomentovanim

class SearchCore

{ public static function sanitize($string, $id_lang, $indexation = false)

{ ...

// tady $string mizi, po zakomentaci search prochazi

//$string = preg_replace('/['.PREG_CLASS_SEARCH_EXCLUDE.']+/u', ' ', $string);

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More