Indefero

Indefero Commit Details


Date:2008-11-23 04:23:20 (16 years 5 months ago)
Author:Loic d'Anterroches
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:b03422fc18f60240b8028306111db88439f1d2a4
Parents: 99dd3aa1d65b11d8c8127bea6a2c457be2dec32f
Message:Fixed function name and add the timeline cleaning for wikirev/page deletion.

Changes:

File differences

src/IDF/Timeline.php
144144
145145
146146
147
147
148148
149149
150150
     * @param mixed Item to be removed
     * @return bool Success
     */
    public static function insert($item)
    public static function remove($item)
    {
        if ($item->id > 0) {
            $sql = new Pluf_SQL('model_id=%s AND model_class=%s',
src/IDF/WikiPage.php
135135
136136
137137
138
139
140
141
142
143
144
145
138146
139147
140148
        return Pluf_Text::cleanString(html_entity_decode($str, ENT_QUOTES, 'UTF-8'));
    }
    /**
     * We drop the information from the timeline.
     */
    function preDelete()
    {
        IDF_Timeline::remove($this);
    }
    function get_current_revision()
    {
        $db = $this->getDbConnection();
src/IDF/WikiRevision.php
111111
112112
113113
114
115
116
117
118
119
120
121
114122
115123
116124
        return $this->content;
    }
    /**
     * We drop the information from the timeline.
     */
    function preDelete()
    {
        IDF_Timeline::remove($this);
    }
    function preSave($create=false)
    {
        if ($this->id == '') {

Archive Download the corresponding diff file

Page rendered in 0.14636s using 13 queries.