~yoboy-leguesh/ubuntu-fr-doc/maj20150810a

« back to all changes in this revision

Viewing changes to inc/changelog.php

  • Committer: YoBoY
  • Date: 2012-10-24 19:05:18 UTC
  • mfrom: (114.1.3 maj-AdoraBelle)
  • Revision ID: yoboy.leguesh@gmail.com-20121024190518-bgtic5m3dt8gnzfn
Mise à jour de Dokuwiki 2012-10-13 "Adora Belle"
Application des patch ubuntu-fr d'optimisation
Ajout des thèmes ubuntu-fr
Ajout des plugins
Mise à jour des plugins box, orphanswanted, pageredirect, tag, cloud, forcepreview, pagelist
Désactivation de la nouvelle option d'envoie de notifications mail en html
Application des derniers patchs correctifs de Dokuwiki.

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
 * @param int    $first   number of first entry returned (for paginating
158
158
 * @param int    $num     return $num entries
159
159
 * @param string $ns      restrict to given namespace
160
 
 * @param bool   $flags   see above
 
160
 * @param int    $flags   see above
 
161
 * @return array recently changed files
161
162
 *
162
163
 * @author Ben Coburn <btcoburn@silicodon.net>
163
164
 * @author Kate Arzamastseva <pshns@ukr.net>
177
178
        $lines = @file($conf['changelog']);
178
179
    }
179
180
    $lines_position = count($lines)-1;
 
181
    $media_lines_position = 0;
 
182
    $media_lines = array();
180
183
 
181
184
    if ($flags & RECENTS_MEDIA_PAGES_MIXED) {
182
185
        $media_lines = @file($conf['media_changelog']);
188
191
    // handle lines
189
192
    while ($lines_position >= 0 || (($flags & RECENTS_MEDIA_PAGES_MIXED) && $media_lines_position >=0)) {
190
193
        if (empty($rec) && $lines_position >= 0) {
191
 
            $rec = _handleRecent(@$lines[$lines_position], $ns, $flags & ~RECENTS_MEDIA_CHANGES, $seen);
 
194
            $rec = _handleRecent(@$lines[$lines_position], $ns, $flags, $seen);
192
195
            if (!$rec) {
193
196
                $lines_position --;
194
197
                continue;
197
200
        if (($flags & RECENTS_MEDIA_PAGES_MIXED) && empty($media_rec) && $media_lines_position >= 0) {
198
201
            $media_rec = _handleRecent(@$media_lines[$media_lines_position], $ns, $flags | RECENTS_MEDIA_CHANGES, $seen);
199
202
            if (!$media_rec) {
200
 
                $media_lines_position --;
201
 
                continue;
 
203
                $media_lines_position --;
 
204
                continue;
202
205
            }
203
206
        }
204
207
        if (($flags & RECENTS_MEDIA_PAGES_MIXED) && @$media_rec['date'] >= @$rec['date']) {
236
239
 * @param int    $from    date of the oldest entry to return
237
240
 * @param int    $to      date of the newest entry to return (for pagination, optional)
238
241
 * @param string $ns      restrict to given namespace (optional)
239
 
 * @param bool   $flags   see above (optional)
 
242
 * @param int    $flags   see above (optional)
 
243
 * @return array of files
240
244
 *
241
245
 * @author Michael Hamann <michael@content-space.de>
242
246
 * @author Ben Coburn <btcoburn@silicodon.net>
320
324
    if ($recent['perms'] < AUTH_READ) return false;
321
325
 
322
326
    // check existance
323
 
    $fn = (($flags & RECENTS_MEDIA_CHANGES) ? mediaFN($recent['id']) : wikiFN($recent['id']));
324
 
    if((!@file_exists($fn)) && ($flags & RECENTS_SKIP_DELETED)) return false;
 
327
    if($flags & RECENTS_SKIP_DELETED){
 
328
        $fn = (($flags & RECENTS_MEDIA_CHANGES) ? mediaFN($recent['id']) : wikiFN($recent['id']));
 
329
        if(!@file_exists($fn)) return false;
 
330
    }
325
331
 
326
332
    return $recent;
327
333
}