From: <ken...@us...> - 2009-02-04 02:51:19
|
Revision: 1219 http://andro.svn.sourceforge.net/andro/?rev=1219&view=rev Author: kendowns Date: 2009-02-04 02:51:10 +0000 (Wed, 04 Feb 2009) Log Message: ----------- Allow fallback to x2 processing from within x6. Modified Paths: -------------- trunk/andro/lib/index_hidden.php Modified: trunk/andro/lib/index_hidden.php =================================================================== --- trunk/andro/lib/index_hidden.php 2009-02-04 02:50:45 UTC (rev 1218) +++ trunk/andro/lib/index_hidden.php 2009-02-04 02:51:10 UTC (rev 1219) @@ -658,6 +658,18 @@ # So we default to the conventional profile. if($x6method=='x6main' && $x6class=='androX6') { $x6method = 'profile_conventional'; + + # KFD 2/2/09. Allow fallback to x2 processing. If the + # app is set for it, and a file exists, call + # that instead + if(configGet('x6_x2','N')=='Y') { + if(file_exists(fsDirTop().'application/'.$x6page.'.php')) { + include_once('x_table2.php'); + include_once($x6page.'.php'); + $x6class = $x6page; + $x6method= "main"; + } + } } # Now everything is resolved. We know what class to instantiate This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |