diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2011-08-04 00:10:23 -0400 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2011-08-04 00:10:23 -0400 |
commit | 9ecedf3ec811c758e26cd51ee3af715a88542ac1 (patch) | |
tree | 2b1e34c84048ebfd804a9cf6f9b4dfb4ffe64f44 /lib/ui.lib.php | |
parent | 3a1bf0c8fc6e02f0c5e7b967f3439256b5356837 (diff) | |
download | ampache-9ecedf3ec811c758e26cd51ee3af715a88542ac1.tar.gz ampache-9ecedf3ec811c758e26cd51ee3af715a88542ac1.tar.bz2 ampache-9ecedf3ec811c758e26cd51ee3af715a88542ac1.zip |
Make the output of catalog_update somewhat readable.
The previous method of mangling the generated HTML was extremely
fragile and broke in a non-obvious fashion when the output was
changed. Instead, modify our convenience function that updates the
text to behave differently when the command line interface is being
used.
Diffstat (limited to 'lib/ui.lib.php')
-rw-r--r-- | lib/ui.lib.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php index 8e8b48c6..42003d9f 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -751,6 +751,10 @@ function toggle_visible($element) { * Convenience function */ function update_text($field, $value) { + if(defined('CLI')) { + echo "$value\n"; + return; + } echo '<script type="text/javascript">'; echo "updateText('$field', '$value');"; echo "</script>\n"; |