Guest User

Untitled

a guest
Jan 21st, 2021
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.18 KB | None | 0 0
  1. 1. in /vendor/craftcms/cms/src/templates/settings/general/_index.html at line 30
  2.     {{ actionInput('system-settings/save-general-settings') }}
  3.     {{ redirectInput('settings') }}
  4.  
  5.     {{ forms.autosuggestField({
  6.         first: true,
  7.         label: "System Name"|t('app'),
  8.         id: 'name',
  9.         suggestEnvVars: true,
  10.         name: 'name',
  11.         value: system.name
  12.     }) }}
  13.  
  14.     {{ forms.lightswitchField({
  15.         label: "System Status"|t('app'),
  16.         warning: (craft.app.config.general.isSystemLive is same as(true) or craft.app.config.general.isSystemLive is same as(false) ? configWarning('isSystemLive')),
  17.         id: 'live',
  18.         name: 'live',
  19.         onLabel: 'Online'|t('app'),
  20.         offLabel: 'Offline'|t('app'),
  21. 2. in /vendor/craftcms/cms/src/helpers/Template.php at line 106– twig_get_attribute(craft\web\twig\Environment, Twig\Source, null, 'name', ...)
  22.         // Add deprecated support for the old DateTime methods
  23.         if ($object instanceof \DateTime && ($value = self::_dateTimeAttribute($object, $item, $type)) !== false) {
  24.             return $value;
  25.         }
  26.  
  27.         try {
  28.             return \twig_get_attribute($env, $source, $object, $item, $arguments, $type, $isDefinedTest, $ignoreStrictCheck);
  29.         } catch (UnknownMethodException $e) {
  30.             // Copy twig_get_attribute()'s BadMethodCallException handling
  31.             if ($ignoreStrictCheck || !$env->isStrictVariables()) {
  32.                 return null;
  33.             }
  34.             throw new RuntimeError($e->getMessage(), -1, $source);
  35. 3. in /vendor/craftcms/cms/src/templates/settings/general/_index.html at line 30– craft\helpers\Template::attribute(craft\web\twig\Environment, Twig\Source, null, 'name', ...)
  36.     {{ forms.autosuggestField({
  37.         first: true,
  38.         label: "System Name"|t('app'),
  39.         id: 'name',
  40.         suggestEnvVars: true,
  41.         name: 'name',
  42.         value: system.name
  43.     }) }}
  44.  
  45.     {{ forms.lightswitchField({
  46.         label: "System Status"|t('app'),
  47.         warning: (craft.app.config.general.isSystemLive is same as(true) or craft.app.config.general.isSystemLive is same as(false) ? configWarning('isSystemLive')),
  48.         id: 'live',
  49.  
Advertisement
Add Comment
Please, Sign In to add comment