Extension talk:IndentSections

how to use this?
 * Save it to the LocalSettings.php on your wiki. Sections should be automatically indented from then on without any more work. &mdash; Anonymous Dissident  Talk 11:52, 5 October 2008 (UTC)

this extension only works if you have edit permissions, i had to do this to make it work without edit permissions: --- IndentSections.php.orig	2008-11-10 20:36:39.000000000 +0100 +++ IndentSections.php	2008-11-10 20:36:32.000000000 +0100 @@ -40,12 +40,12 @@ function fnIndentSectionsBeforePageDisplay(&$out) { $text =& $out->mBodytext; for($i = 6; $i > 1; $i -= 1){ -   $pattern = sprintf('/( ? .*?)()/ms', $i, $i-1); +   $pattern = sprintf('/( ?.*?)()/ms', $i, $i-1); $text = preg_replace_callback($pattern, fnIndentSectionsCallback, $text); }  return true; } function fnIndentSectionsCallback($matches){ - return '"' . $matches[1] . '"'. $matches[2]; + return '"' . $matches[1] . '"'. $matches[3]; } should i make these changes to the code?

Extension - coding changes killed the wiki.
I followed instructions and after modifying the LocalSetting.php file (as instructed), my wiki will no longer load. I am given a message that reads, "Error, Setup.php must be included from the file scope, after DefaultSettings.php"