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

Catchable fatal error: Object of class mediaWikiConverter could not be converted to string in mediawiki2dokuwiki.php on line 147 #14

Merged
merged 3 commits into from
Aug 9, 2012
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Since the first headline level is "reserved" for the page title in do…
…kuwiki, this starts the headline conversion from the second level. But it merges the two bottom headline levels
  • Loading branch information
sockenklaus committed Aug 8, 2012
commit 728b4019d713a330a330c6757b3c6f4e81d91968
8 changes: 4 additions & 4 deletions src/convertSyntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,10 @@ private function convertList($record) {
*/
private function convertHeadings($record) {
$patterns = array('/^======(.+)======\s*$/m' => '==\1==',
'/^=====(.+)=====\s*$/m' => '===\1===',
'/^====(.+)====\s*$/m' => '====\1====',
'/^===(.+)===\s*$/m' => '=====\1=====',
'/^==(.+)==\s*$/m' => '======\1======');
'/^=====(.+)=====\s*$/m' => '==\1==',
'/^====(.+)====\s*$/m' => '===\1===',
'/^===(.+)===\s*$/m' => '====\1====',
'/^==(.+)==\s*$/m' => '=====\1=====');

// Insert a unique string to the replacement so that it won't be
// caught in a search later.
Expand Down