Joomler!.net - Decided on Joomla!

Jboard is Multiple Board!

 

Archives

Blog

Demo

Home » Blog » com_search
0 votes
Written by:Joomler! 10048 hits Wednesday, 24 October 2007 02:06

クライアントから苦情がっ!Joomla!のデフォルトの検索窓から日本語を7文字以上いれて検索すると文字化けすると言われ、確認すると確かに文字化けしますね。ちょっとJoomla!のファイルを変更してみました。

フロントエンド/components/com_search/search.phpの77~~87行目あたり。

	// limit searchword to 20 characters
	if ( strlen( $searchword ) > 20 ) {
	    $searchword     = substr( $searchword, 0, 19 );
	    $restriction    = 1;
	}

	// searchword must contain a minimum of 3 characters
	if ( $searchword && strlen( $searchword ) < 3 ) {
	    $searchword     = '';
	    $restriction    = 1;
	}
	// limit searchword to 20 characters
	if ( mb_strlen( $searchword ) > 20 ) {
	    $searchword     = mb_substr( $searchword, 0, 19 );
	    $restriction    = 1;
	}

	// searchword must contain a minimum of 3 characters
	if ( $searchword && mb_strlen( $searchword ) < 3 ) {
	    $searchword     = '';
	    $restriction    = 1;
	}

に変更しました。
 

JContentPlus for Joomla!1.5 powered by Joomler!.net

joomler.net is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla!(R) name is used under a limited license from Open Source Matters in the United States and other countries.
joomler.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.