Project

General

Profile

« Previous | Next » 

Revision 826

Added by doc over 16 years ago

Allowed tags for multi-lingual module descriptions

View differences:

details.php
62 62
	// read contents of the module language file into string
63 63
	$data = @file_get_contents(WB_PATH .'/modules/' .$file .'/languages/' .LANGUAGE .'.php');
64 64
	// use regular expressions to fetch the content of the variable from the string
65
	$tool_description = get_variable_content('module_description', $data, true, false);
65
	$tool_description = get_variable_content('module_description', $data, false, false);
66
	// replace optional placeholder {WB_URL} with value stored in config.php
67
	$tool_description = str_replace('{WB_URL}', WB_URL, $tool_description);
66 68
}		
67 69
if($tool_description !== false) {
68 70
	// Override the module-description with correct desription in users language

Also available in: Unified diff