Changeset 615

Show
Ignore:
Timestamp:
10/04/06 12:17:30 (2 years ago)
Author:
ben
Message:

Adding template settings to admin panel.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/_elggadmin/config-template.php

    r606 r615  
    153153 
    154154// TEMPLATES HANDLING 
    155 //\$CFG->disable_usertemplates = true;  // users can only choose from available templates 
    156 //\$CFG->disable_templatechanging = true; // users can't change their template at all 
     155\$CFG->disable_usertemplates = $PARSEDCFG->disable_usertemplates;  // users can only choose from available templates 
     156\$CFG->disable_templatechanging = $PARSEDCFG->disable_templatechanging; // users can't change their template at all 
    157157//Templates root defaults to /_templates; if you change this, you will need 
    158158//to move or copy /_templates/Default_Template/ to the new location 
  • devel/_elggadmin/configdef.php

    r606 r615  
    3737            $DEFCFG->config['default_access']->description = gettext("The default access level for all new items in the system"); 
    3838            $DEFCFG->config['default_access']->type = gettext("access"); 
     39            $DEFCFG->config['disable_usertemplates']->name = gettext("Disable user templates"); 
     40            $DEFCFG->config['disable_usertemplates']->description = gettext("If this is set, users can only choose from available templates rather than defining their own"); 
     41            $DEFCFG->config['disable_usertemplates']->type = "boolean"; 
     42            $DEFCFG->config['disable_templatechanging']->name = gettext("Disable template changing"); 
     43            $DEFCFG->config['disable_templatechanging']->description = gettext("Users cannot change their template at all"); 
     44            $DEFCFG->config['disable_templatechanging']->type = "boolean"; 
    3945            $DEFCFG->config['dbtype']->name = gettext("Database type"); 
    4046            $DEFCFG->config['dbtype']->description = gettext("Acceptable values are 'mysql' and 'postgres' - MySQL is highly recommended");