When toggling the staticpage enabled/disabled status from the admin list, PLG_itemSaved() is only called for the last page since it's called outside the loop.
It would probably be better to toggle only the specific page rather than updating all, but for now moving the call to PLG_itemSaved() inside the loop will work around this.
When toggling the staticpage enabled/disabled status from the admin list, PLG_itemSaved() is only called for the last page since it's called outside the loop.
It would probably be better to toggle only the specific page rather than updating all, but for now moving the call to PLG_itemSaved() inside the loop will work around this.