• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

How to use files from xnova 0.x versions for legancie versions

Status
Not open for further replies.
Skilled Illusionist
Joined
Oct 28, 2008
Messages
379
Reaction score
47
Hello, on this forum a lot of mods are posted for Xnova 0.9 or lower. I personaly have Xnova legancies 2009.2. If you use the files from xnova 0.9 in the legancies versions you'll get an error. This error is very easy to fix.
Ok, in the Xnova 0.9 versions include is still written in PHP 4.0 style while in Xnova legancies they have updated it to PHP 5.3 style.This means that including is now easier.

So you'll have to search for these lines (always on top of the file)
PHP:
$xnova_root_path = './';
include($xnova_root_path . 'extension.inc');
include($xnova_root_path . 'common.' . $phpEx);
These lines are always under the lines that define the file.
Now you'll simply have to replace those lines with this line and you've fixed it.
PHP:
require_once dirname(__FILE__) .'/common.php';

press the thank you button if i helped :D
 
Status
Not open for further replies.
Back
Top