[Plugin: Smart Archives Reloaded] Bug/Typo in the Plugin Documentation
-
Hi,
I just passed 15 minutes not understanding because there is a bug/typo in the documentation. It says that to change the markup you need to extend the SAR_Generator (no problem there) and then override the generate_[type] methods, I quote:smart_archives_load_default_generator(); class SAR_Custom_Generator extends SAR_Generator { protected static function generate_fancy() { // your custom code here } protected static function generate_block() { // more of your custom code here } ... }
The probleme here is that the generate_* methods in the parent class are not static (at least not anymore), so they shouldn’t be either in the child class.
Hope it helped
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Smart Archives Reloaded] Bug/Typo in the Plugin Documentation’ is closed to new replies.