I found a small problem when using VayaDesign ‘Delete Entries’ plugin (described here and here).
The problem occurs when the plugin generates the link to the delete template in the case where the site is setup with a blank index file (Admin -> System Preferences -> General Configuration -> Name of your site’s index page).
As a quick fix, I added a conditional around the link generation starting on line 41 of version 1.0 of the plugin:
Replace:
$link = "<a >ini('site_url') . $PREFS->ini('site_index') . "/" . $TMPL->fetch_param('template') . "/" . $TMPL->fetch_param('entryid') . "\"$showconfirm>" . $TMPL->tagdata . "</a>";
With:
if ($PREFS->ini('site_index') == '') {
$link = "<a >ini('site_url') . $TMPL->fetch_param('template') . "/" . $TMPL->fetch_param('entryid') . "\"$showconfirm>" . $TMPL->tagdata . "</a>";
} else {
$link = "<a >ini('site_url') . $PREFS->ini('site_index') . "/" . $TMPL->fetch_param('template') . "/" . $TMPL->fetch_param('entryid') . "\"$showconfirm>" . $TMPL->tagdata . "</a>";
}
-Jeff
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.