<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Bug in functions.php?</title>
		<link>https://www.cotonti.com</link>
		<description>Останні повідомлення в темі</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sat, 11 Apr 2026 11:43:19 -0000</pubDate>

		<item>
			<title>esclkm</title>
			<description><![CDATA[<p>
	fix</p>
]]></description>
			<pubDate>Вт, 06 Вер 2011 21:26:43 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6505&d=0#post30646]]></link>
		</item>
		<item>
			<title>Mr G.</title>
			<description><![CDATA[<p>
	Hi, i'm not so good in php. but i thik i found a bug in function cot_langfile</p>
<p>
	there is in lines 2655-2658</p>
<pre class="brush:php;">
elseif ($type == 'core')
	{
		return $cfg['lang_dir']."/$default/$name.$default.lang.php";
	}
</pre>
<p>
	so the language change doesn't work, i think there should be something like this</p>
<pre class="brush:php;">
elseif ($type == 'core')
	{
		if (@file_exists($cfg['lang_dir']."/$lang/$name.$lang.lang.php"))
		{
			return $cfg['lang_dir']."/$lang/$name.$lang.lang.php";
		}
		else
		{
			return $cfg['lang_dir']."/$default/$name.$default.lang.php";
		}
	}</pre>
<p>
	but i might be wrong...., as i said i'm not so good in php</p>
]]></description>
			<pubDate>Вт, 06 Вер 2011 08:53:59 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6505&d=0#post30637]]></link>
		</item>
	</channel>
</rss>