Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FeedWriter.php & ATOM #550

Closed
kraoc opened this issue Mar 12, 2014 · 11 comments
Closed

FeedWriter.php & ATOM #550

kraoc opened this issue Mar 12, 2014 · 11 comments
Milestone

Comments

@kraoc
Copy link

kraoc commented Mar 12, 2014

Sue la version DEV:

    /**
    * Set the 'description' channel element
    * 
    * @access   public
    * @param    srting  value of 'description' channel tag
    * @return   void
    */
    public function setDescription($desciption)
    {
        $tag = ($this->version == ATOM)? 'subtitle' : 'description'; 
        $this->setChannelElement($tag, $desciption);
    }

La constante ATOM est utilisée sans être définie.

@nicosomb
Copy link
Member

ping @tcitworld @jogaulupeau

@nicosomb
Copy link
Member

Like @kraoc said here #548 (comment), there is a problem with chrome addon.

@nicosomb nicosomb added this to the 1.7.0 milestone Mar 14, 2014
@tcitworld
Copy link
Member

I've also seen that if PHP displays all errors (Notice level), this causes the generated feeds to become invalid.

@nicosomb
Copy link
Member

Is that linked with #583 ?

@tcitworld
Copy link
Member

No, though it's the same file.

And as far as I know, the Chrome extension doesn't uses RSS feeds.

@nicosomb
Copy link
Member

nicosomb commented Apr 6, 2014

Fixed here: 2dd5c1e

@nicosomb nicosomb closed this as completed Apr 6, 2014
@kraoc
Copy link
Author

kraoc commented Apr 6, 2014

Why setting a variable to use it like a constant...

Just do:
$this->setChannelElement('description', $desciption);

@nicosomb
Copy link
Member

nicosomb commented Apr 6, 2014

You're right. Fixed. 9cb9ab5

@kraoc
Copy link
Author

kraoc commented Apr 6, 2014

Less variable... simplier code... easier to debug & fix :)

Bon et au passage on peut aussi parler notre langue commune... lol

@nicosomb
Copy link
Member

nicosomb commented Apr 6, 2014

You're right... I have to be more attentive ... So tired, but it's not an excuse.

@kraoc
Copy link
Author

kraoc commented Apr 6, 2014

More spirit pulled in code... Less spirit pulled in debug...

(enfin c'est mon avis)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants