Fixed lack of default value in main page field on admin panel
authorDan
Fri, 29 May 2009 13:55:16 -0400
changeset 1009 fa665a95e99d
parent 1008 d21eef4f9e8c
child 1010 12e76b1acb4e
Fixed lack of default value in main page field on admin panel
plugins/SpecialAdmin.php
--- a/plugins/SpecialAdmin.php	Wed May 27 14:15:15 2009 -0400
+++ b/plugins/SpecialAdmin.php	Fri May 29 13:55:16 2009 -0400
@@ -291,7 +291,7 @@
         <td class="row1">
           <?php echo $lang->get('acpgc_field_main_page'); ?></td>
         <td class="row1">
-          <?php echo $template->pagename_field('main_page', sanitize_page_id(getConfig('main_page'))); ?><br />
+          <?php echo $template->pagename_field('main_page', sanitize_page_id(getConfig('main_page', 'Main_Page'))); ?><br />
             <label><input type="radio" name="main_page_alt_enable" value="0" onclick="$('#main_page_alt_tr').hide();" <?php if ( getConfig('main_page_alt_enable', '0') == '0' ) echo 'checked="checked" '; ?>/> <?php echo $lang->get('acpgc_field_main_page_option_same'); ?></label><br />
             <label><input type="radio" name="main_page_alt_enable" value="1" onclick="$('#main_page_alt_tr').show();" <?php if ( getConfig('main_page_alt_enable', '0') == '1' ) echo 'checked="checked" '; ?>/> <?php echo $lang->get('acpgc_field_main_page_option_members'); ?></label>
         </td>