Changeset 9600


Ignore:
Timestamp:
Mar 10, 2011, 4:12:10 PM (10 years ago)
Author:
patdenice
Message:

Module configuration is now optional.

Location:
extensions/PWG_Stuffs
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/PWG_Stuffs/admin/add_module.inc.php

    r9575 r9600  
    1818if (isset($_POST['submit']) and !is_adviser())
    1919{
    20   include($module_path.'config.inc.php');
     20  @include($module_path.'config.inc.php');
    2121  if (empty($page['errors']))
    2222  {
     
    177177
    178178// Module configuration
    179 include_once($module_path.'config.inc.php');
     179@include_once($module_path.'config.inc.php');
    180180
    181181$template->set_filenames(array('plugin_admin_content' => dirname(__FILE__) . '/template/add_module.tpl'));
  • extensions/PWG_Stuffs/admin/template/add_module.tpl

    r9383 r9600  
    9090</fieldset>
    9191
     92{if not empty($MODULE_OPTIONS)}
    9293<fieldset>
    9394        <legend>{'stuffs_module_options'|@translate}</legend>
    9495        {$MODULE_OPTIONS}
    9596</fieldset>
     97{/if}
    9698<p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}/></p>
    9799</form>
Note: See TracChangeset for help on using the changeset viewer.