<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — $ext == 'module' error?]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3653&amp;type=atom" />
	<updated>2012-12-19T17:11:04Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=3653</id>
		<entry>
			<title type="html"><![CDATA[Re: $ext == 'module' error?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14713#p14713" />
			<content type="html"><![CDATA[<p>You are right. Those are artifacts of pre-2.2 extensions. Will be cleaned up in next minor version. Thanks for pointing this out.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2012-12-19T17:11:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14713#p14713</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[$ext == 'module' error?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14665#p14665" />
			<content type="html"><![CDATA[<p>In the file <strong>admin/inst_module.php</strong>, shouldn&#039;t the line 116<br /></p><div class="codebox"><pre><code>        $is_mod = $ext[&#039;type&#039;] == &#039;module&#039;;</code></pre></div><p>be<br /></p><div class="codebox"><pre><code>        $is_mod = $ext[&#039;type&#039;] == &#039;extension&#039;;</code></pre></div><p>Better still, have the line removed as the $is_mod variable is not used anywhere at all.</p><p>In the file <strong>includes/ui/ui_lists.inc</strong>, shouldn&#039;t the line 2213<br /></p><div class="codebox"><pre><code>        if ($ext[&#039;type&#039;] == &#039;module&#039; &amp;&amp; !$ext[&#039;active&#039;])
            $tabs[$ext[&#039;tab&#039;]] = access_string($ext[&#039;title&#039;], true);</code></pre></div><p>be<br /></p><div class="codebox"><pre><code>        if ($ext[&#039;type&#039;] == &#039;extension&#039; &amp;&amp; !$ext[&#039;active&#039;])
            $tabs[$ext[&#039;tab&#039;]] = access_string($ext[&#039;title&#039;], true);</code></pre></div><p>Also the subsequent line refers to the <strong>$ext[&#039;tab&#039;]</strong> variable coming from $installed_extensions array that has been commented out in <strong>includes/packages.inc</strong> file in lines 128, 494, 671-672.</p><p>On a similar note, consequent to the gross changes in the extensions / plugins system in FA v2.3+, the file <strong>sql/alter2.3.php</strong> has the line 297 as part of a commented out block.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-12-18T05:55:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14665#p14665</id>
		</entry>
</feed>
