Skip to content

Commit

Permalink
Fixes issue #14
Browse files Browse the repository at this point in the history
  • Loading branch information
sockenklaus committed Aug 8, 2012
1 parent 1a93474 commit 365e93e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/mediawiki2dokuwiki.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,9 @@ function convert(PDO $db, array $mwikiDb, array $lang) {
* @param array $lang DokuWiki language
*/
function processPage(array $record, array $lang) {
$converter = '====== ' . $record['page_title'] . ' ======'
. new mediaWikiConverter($record['old_text']);
$converter = new mediaWikiConverter($record['old_text']);

saveWikiText($record['page_title'], con('', $converter->convert(), ''),
$lang['created']);
saveWikiText($record['page_title'], con('', "====== " . $record['page_title'] . " ======\n\n" . $converter->convert(), ''), $lang['created']);
}

/**
Expand Down

0 comments on commit 365e93e

Please sign in to comment.