--- mambo/trunk/administrator/components/com_modules/admin.modules.php 2005/12/13 03:45:47 1 +++ mambo/branches/4.6/administrator/components/com_modules/admin.modules.php 2006/01/14 18:19:40 129 @@ -390,21 +390,10 @@ // build the html select list for published $lists['published'] = mosAdminMenus::Published( $row ); - $row->description = ''; - // XML library - require_once( $mosConfig_absolute_path . '/includes/domit/xml_domit_lite_include.php' ); // xml file for module $xmlfile = $mainframe->getPath( $path, $row->module ); - $xmlDoc =& new DOMIT_Lite_Document(); - $xmlDoc->resolveErrors( true ); - if ($xmlDoc->loadXML( $xmlfile, false, true )) { - $element = &$xmlDoc->documentElement; - - if ($element->getTagName() == 'mosinstall' && $element->getAttribute( 'type' ) == 'module' ) { - $element = &$xmlDoc->getElementsByPath( 'description', 1 ); - $row->description = $element ? trim( $element->getText() ) : ''; - } - } + $xmlparser =& new mosXMLDescription ($xmlfile); + $row->description = $xmlparser->getDescription('module'); // get params definitions $params =& new mosParameters( $row->params, $xmlfile, 'module' ); @@ -626,4 +615,4 @@ $msg = 'New ordering saved'; mosRedirect( 'index2.php?option=com_modules&client='. $client, $msg ); } // saveOrder -?> \ No newline at end of file +?>