diff --git a/addon/randplace/randplace.php b/addon/randplace/randplace.php index 304745493..e14ae74c7 100644 --- a/addon/randplace/randplace.php +++ b/addon/randplace/randplace.php @@ -141,7 +141,7 @@ function randplace_settings_post($a,$post) { } -/* +/** * Called from the end of the settings form. * Add our own settings info to the page. * @@ -154,19 +154,25 @@ function randplace_settings(&$a,&$s) { if(! local_user()) return; + /* Add our stylesheet so we can match the page layout */ + $a->page['htmlhead'] .= '' . "\r\n"; + /* Get the current state of our config variable */ + $enabled = get_pconfig(local_user(),'randplace','enable'); $checked = (($enabled) ? ' checked="checked" ' : ''); + /* Add some HTML to the form */ + $s .= '

' . t('Randplace Settings') . '

'; $s .= '
'; - $s .= ''; + $s .= ''; $s .= ''; $s .= '
'; - // provide another submit button + /* provide another submit button */ $s .= '
'; diff --git a/util/typo.php b/util/typo.php index 67fa7dc90..be5307ab3 100644 --- a/util/typo.php +++ b/util/typo.php @@ -20,3 +20,7 @@ $files = glob('include/*.php'); foreach($files as $file) include_once($file); + + $files = glob('addon/*.php'); + foreach($files as $file) + include_once($file);