Overview
Comment:Fix in case string is null
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA3-256: 82ea8f2e97e3acdbc8cef719eb2a5a3d4cc92cbf947f30b94cf4fa6edf498d63
User & Date: bohwaz on 2021-04-07 18:58:48
Other Links: branch diff | manifest | tags
Context
2021-04-07
22:17
Fix FileSystem quota iterator check-in: 2aa74b5e61 user: bohwaz tags: dev
18:58
Fix in case string is null check-in: 82ea8f2e97 user: bohwaz tags: dev
14:08
Fix [9de0e8bedad3d7f412b66ed6e1fd892bee3eccf1] fix links to images and files from other pages check-in: e35246d917 user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Template.php from [5d1bf1759c] to [3fde8a20c2].

93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
		$this->register_modifier('dump', ['KD2\ErrorManager', 'dump']);
		$this->register_modifier('get_country_name', ['Garradin\Utils', 'getCountryName']);
		$this->register_modifier('format_tel', [$this, 'formatPhoneNumber']);
		$this->register_modifier('abs', 'abs');
		$this->register_modifier('display_champ_membre', [$this, 'displayChampMembre']);

		$this->register_modifier('format_skriv', function ($str) {
			return Skriv::render(null, $str);
		});

		foreach (CommonModifiers::MODIFIERS_LIST as $key => $name) {
			$this->register_modifier(is_int($key) ? $name : $key, is_int($key) ? [CommonModifiers::class, $name] : $name);
		}

		foreach (CommonModifiers::FUNCTIONS_LIST as $key => $name) {







|







93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
		$this->register_modifier('dump', ['KD2\ErrorManager', 'dump']);
		$this->register_modifier('get_country_name', ['Garradin\Utils', 'getCountryName']);
		$this->register_modifier('format_tel', [$this, 'formatPhoneNumber']);
		$this->register_modifier('abs', 'abs');
		$this->register_modifier('display_champ_membre', [$this, 'displayChampMembre']);

		$this->register_modifier('format_skriv', function ($str) {
			return Skriv::render(null, (string) $str);
		});

		foreach (CommonModifiers::MODIFIERS_LIST as $key => $name) {
			$this->register_modifier(is_int($key) ? $name : $key, is_int($key) ? [CommonModifiers::class, $name] : $name);
		}

		foreach (CommonModifiers::FUNCTIONS_LIST as $key => $name) {