Bugfix: isseet -> isset

This commit is contained in:
Starbeamrainbowlabs 2015-10-04 14:04:42 +01:00
parent edf2c88d12
commit f5555bad3e
5 changed files with 20 additions and 10 deletions

View File

@ -46,6 +46,8 @@ $settings->maxpagesize = 135000;
// affect code blocks - they should alwys be escaped. It is STRONGLY // affect code blocks - they should alwys be escaped. It is STRONGLY
// recommended that you keep this option turned on, *ESPECIALLY* if you allow // recommended that you keep this option turned on, *ESPECIALLY* if you allow
// anonymous edits as no sanitizing what so ever is performed on the HTML. // anonymous edits as no sanitizing what so ever is performed on the HTML.
// Also note that some parsers may override this setting and escape HTML
// sequences anyway.
$settings->clean_raw_html = true; $settings->clean_raw_html = true;
// Determined whether users who aren't logged in are allowed to edit your wiki. // Determined whether users who aren't logged in are allowed to edit your wiki.
@ -1103,9 +1105,9 @@ register_module([
else else
{ {
// This page isn't a redirect. Unset the metadata just in case. // This page isn't a redirect. Unset the metadata just in case.
if(isseet($index_entry->redirect)) if(isset($index_entry->redirect))
unset($index_entry->redirect); unset($index_entry->redirect);
if(isseet($index_entry->redirect_target)) if(isset($index_entry->redirect_target))
unset($index_entry->redirect_target); unset($index_entry->redirect_target);
} }
}); });
@ -2028,9 +2030,12 @@ register_module([
"code" => function() { "code" => function() {
$parsedown_extra = new ParsedownExtra(); $parsedown_extra = new ParsedownExtra();
add_parser("parsedown", function($source) use ($parsedown_extra) { add_parser("parsedown", function($source) use ($parsedown_extra) {
$source = Parsedown_Slimdown_Extensions::render($source);
return $parsedown_extra->text($source); $result = $parsedown_extra->text($source);
$result = Parsedown_Slimdown_Extensions::render($source);
return $result;
}); });
} }
]); ]);

View File

@ -41,7 +41,7 @@
"author": "Starbeamrainbowlabs", "author": "Starbeamrainbowlabs",
"description": "Adds support for redirect pages. Uses the same syntax that Mediawiki does.", "description": "Adds support for redirect pages. Uses the same syntax that Mediawiki does.",
"id": "feature-redirect", "id": "feature-redirect",
"lastupdate": 1443874989, "lastupdate": 1443963856,
"optional": false "optional": false
}, },
{ {
@ -158,7 +158,7 @@
"author": "Johnny Broadway, Emanuil Rusev & Starbeamrainbowlabs", "author": "Johnny Broadway, Emanuil Rusev & Starbeamrainbowlabs",
"description": "An upgraded parser based on Emanuil Rusev's Parsedown Extra PHP library (https:\/\/github.com\/erusev\/parsedown-extra), which is licensed MIT. Also uses a modified Slimdown engine by Johnny Broadway in order to add support for internal links etc. Please be careful, as this module adds a _ton_ of weight to your installation.", "description": "An upgraded parser based on Emanuil Rusev's Parsedown Extra PHP library (https:\/\/github.com\/erusev\/parsedown-extra), which is licensed MIT. Also uses a modified Slimdown engine by Johnny Broadway in order to add support for internal links etc. Please be careful, as this module adds a _ton_ of weight to your installation.",
"id": "parser-parsedown", "id": "parser-parsedown",
"lastupdate": 1443961922, "lastupdate": 1443962482,
"optional": true "optional": true
} }
] ]

View File

@ -19,9 +19,9 @@ register_module([
else else
{ {
// This page isn't a redirect. Unset the metadata just in case. // This page isn't a redirect. Unset the metadata just in case.
if(isseet($index_entry->redirect)) if(isset($index_entry->redirect))
unset($index_entry->redirect); unset($index_entry->redirect);
if(isseet($index_entry->redirect_target)) if(isset($index_entry->redirect_target))
unset($index_entry->redirect_target); unset($index_entry->redirect_target);
} }
}); });

View File

@ -9,9 +9,12 @@ register_module([
"code" => function() { "code" => function() {
$parsedown_extra = new ParsedownExtra(); $parsedown_extra = new ParsedownExtra();
add_parser("parsedown", function($source) use ($parsedown_extra) { add_parser("parsedown", function($source) use ($parsedown_extra) {
$source = Parsedown_Slimdown_Extensions::render($source);
return $parsedown_extra->text($source); $result = $parsedown_extra->text($source);
$result = Parsedown_Slimdown_Extensions::render($source);
return $result;
}); });
} }
]); ]);

View File

@ -43,6 +43,8 @@ $settings->maxpagesize = 135000;
// affect code blocks - they should alwys be escaped. It is STRONGLY // affect code blocks - they should alwys be escaped. It is STRONGLY
// recommended that you keep this option turned on, *ESPECIALLY* if you allow // recommended that you keep this option turned on, *ESPECIALLY* if you allow
// anonymous edits as no sanitizing what so ever is performed on the HTML. // anonymous edits as no sanitizing what so ever is performed on the HTML.
// Also note that some parsers may override this setting and escape HTML
// sequences anyway.
$settings->clean_raw_html = true; $settings->clean_raw_html = true;
// Determined whether users who aren't logged in are allowed to edit your wiki. // Determined whether users who aren't logged in are allowed to edit your wiki.