Пример #1
0
 protected static function prepare($config)
 {
     // Handle spec requirements
     // If the name or http-equiv attribute is in place, there must be a content key
     if ((isset($config['name']) || isset($config['http-equiv'])) && !isset($config['content'])) {
         // name or http-equiv must have content
         die(get_class() . ' - fatal error: when name or http-equiv are set, content must also be set');
     }
     if (!isset($config['charset'])) {
         $config = Meta::configAfterConvertingKeyToAttribute($config, 'content');
     }
     return $config;
 }