Overview
Comment:Correction typo
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 34e80f5aa528a36c543f41b320df73f24b56da43
User & Date: bohwaz on 2015-02-14 01:48:29
Other Links: manifest | tags
Context
2015-02-17
17:15
Montrer quand le mot de passe est trop court check-in: e9e8918053 user: bohwaz tags: trunk
2015-02-14
01:48
Correction typo check-in: 34e80f5aa5 user: bohwaz tags: trunk
01:20
Suite [16af9ccf928fd8f199465fdd4e8192c83846d301] simplification du report à nouveau (suggéré par @arf) check-in: 7857bf1593 user: bohwaz tags: trunk
Changes

Modified src/www/admin/upgrade.php from [bd1441a7c4] to [31d46ac130].

205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
    $db->exec('PRAGMA foreign_keys = OFF; BEGIN;');

    // Mise à jour base de données
    $db->exec(file_get_contents(ROOT . '/include/data/0.7.0.sql'));

    // Changement de syntaxe du Wiki vers SkrivML
    $wiki = new Wiki;
    $st = $db->prepare('SELECT id_page, contenu, revision, chiffrement FROM wiki_revisions GROUP BY id_page ORDER BY revision DESC;');

    while ($row = $st->fetchArray(\SQLITE3_ASSOC))
    {
        // Ne pas convertir le contenu chiffré, de toute évidence
        if ($row['chiffrement'])
            continue;

        $content = $row['contenu'];
        $content = Utils::HTMLToSkriv($content);







|

|







205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
    $db->exec('PRAGMA foreign_keys = OFF; BEGIN;');

    // Mise à jour base de données
    $db->exec(file_get_contents(ROOT . '/include/data/0.7.0.sql'));

    // Changement de syntaxe du Wiki vers SkrivML
    $wiki = new Wiki;
    $res = $db->query('SELECT id_page, contenu, revision, chiffrement FROM wiki_revisions GROUP BY id_page ORDER BY revision DESC;');

    while ($row = $res->fetchArray(\SQLITE3_ASSOC))
    {
        // Ne pas convertir le contenu chiffré, de toute évidence
        if ($row['chiffrement'])
            continue;

        $content = $row['contenu'];
        $content = Utils::HTMLToSkriv($content);