if ($options['comments'] == true) {
// Display username as part of the title for easier feed-readability
$entry['title'] = $entry['author'] . ': ' . $entry['title'];
}
normal it makes "name: title"
If there is no author-name (=anonym), these code still make an ":" before the title, so it results in ": title"
if ( ($options['comments'] == true) AND ($entry['author'] != '') ) {
// Display username as part of the title for easier feed-readability
$entry['title'] = $entry['author'] . ': ' . $entry['title'];
}
if ( ($options['comments'] == true) AND ($entry['author'] != '') ) {
// Display username as part of the title for easier feed-readability
$entry['title'] = $entry['author'] . ': ' . $entry['title'];
} elseif ($options['comments'] == true) {
// Display anonymous as part of the title for easier feed-readability
$entry['title'] = $CONST.ANONYMOUS . ': ' . $entry['title'];
}
Thanks, fix committed (although in a slighty different style). Next time it would also help if you mention the filename where to fix this
Best regards and thanks,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
$CONST.ANONYMOUS does not exist in PHP space, only in Smarty space.
In PHP it would need to read $CONST['ANONYMOUS'], but this also doesn'T exist, because "ANONYMOUS" is a constant, and is thus accessed without $ and .
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Because "." is the concatenation character. Thus, the output first returned $CONST and then joined the "ANONYMOUS" constant next to it. Since $CONST is an unset variable, this returned an empty string, and the constant ANONYMOUS returned the proper variable.
It's quite funny, now that I think of it.
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/