[Plugin: Smart Archives Reloaded] Bug/Typo in the Plugin Documentation (2 posts)

  1. AzizLight
    Posted 6 years ago #

    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:

    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

  2. scribu
    Posted 6 years ago #

    Updated. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic