diff options
| author | lsces <lester@lsces.co.uk> | 2026-03-26 17:38:36 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-03-26 17:38:36 +0000 |
| commit | 0bb2516c7143125e58e21295fd47b2064d31bb64 (patch) | |
| tree | 87c91837fb135abcde08598d46c679c7801bac1d /list_content.php | |
| parent | ca5bc9374b72dc41758b34a88591af3881269b97 (diff) | |
| download | liberty-0bb2516c7143125e58e21295fd47b2064d31bb64.tar.gz liberty-0bb2516c7143125e58e21295fd47b2064d31bb64.tar.bz2 liberty-0bb2516c7143125e58e21295fd47b2064d31bb64.zip | |
Namespace changes
Diffstat (limited to 'list_content.php')
| -rwxr-xr-x | list_content.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/list_content.php b/list_content.php index 8b6b601..35fde0d 100755 --- a/list_content.php +++ b/list_content.php @@ -101,11 +101,14 @@ if( !empty( $_REQUEST['output'] )) { * Recommend that this be standardized, but * a package dependency somewhere is likely an issue */ - require_once UTIL_PKG_PATH.'javascript/suggest/suggest_lib.php'; foreach( array_keys( $contentList ) as $row ) { $xmlList[$contentList[$row]['content_id']] = $contentList[$row]['title']; } - $xml = SuggestLib::exportXml( $xmlList, $_REQUEST['id'] ); + $xml = '<?xml version="1.0" ?><ajax-response><response type="object" id="'.$_REQUEST['id'].'_updater"><matches>'; + foreach( $xmlList as $value=>$name ) { + $xml .= "<entry><text>".htmlentities( $name )."</text><value>".htmlentities( $value )."</value></entry>"; + } + $xml .= "</matches></response></ajax-response>"; header( "Content-Type: text/xml\n\n" ); print $xml; break; |
