FanUpdate: Show 'Whole Collective'
Since FanUpdate 2.1.1, Whole Collective disappeared from the category list entirely (when creating/editing entries), as well as any missing category. Below is a snippet for allowing non-categorised entries to show Whole Collective, instead of a blank link.
Snippet
In FanUpdate_Post.php under the folder /class, go to line 172, and underneath this line:
foreach ($this->params['category'] as $key => $val) {
Add the following block of text underneath that:
if(empty($val)) {
$val = 'Whole Collective';
}
if(empty($key)) {
$key = 0;
}
The whole block of text will look like this:
foreach ($this->params['category'] as $key => $val) {
if(empty($val)) {
$val = 'Whole Collective';
}
if(empty($key)) {
$key = 0;
}
Done! You now have 'Whole Collective'! If you feel uncomfortable messing around with the coding, I've uploaded the edited file, which you can download from the » download page!
Comments
Currently no comments!