Diff of /mambo/branches/4.6/administrator/components/com_modules/admin.modules.php
Parent Directory
|
Revision Log
|
Patch
| revision 128, Sat Jan 14 13:53:24 2006 UTC | revision 129, Sat Jan 14 18:19:40 2006 UTC | |
|---|---|---|
| # | Line 390 | Line 390 |
| 390 | // build the html select list for published | // build the html select list for published |
| 391 | $lists['published'] = mosAdminMenus::Published( $row ); | $lists['published'] = mosAdminMenus::Published( $row ); |
| 392 | ||
| $row->description = ''; | ||
| // XML library | ||
| require_once( $mosConfig_absolute_path . '/includes/domit/xml_domit_lite_include.php' ); | ||
| 393 | // xml file for module | // xml file for module |
| 394 | $xmlfile = $mainframe->getPath( $path, $row->module ); | $xmlfile = $mainframe->getPath( $path, $row->module ); |
| 395 | $xmlDoc =& new DOMIT_Lite_Document(); | $xmlparser =& new mosXMLDescription ($xmlfile); |
| 396 | $xmlDoc->resolveErrors( true ); | $row->description = $xmlparser->getDescription('module'); |
| 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() ) : ''; | ||
| } | ||
| } | ||
| 397 | ||
| 398 | // get params definitions | // get params definitions |
| 399 | $params =& new mosParameters( $row->params, $xmlfile, 'module' ); | $params =& new mosParameters( $row->params, $xmlfile, 'module' ); |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

