Overview
SHA1:152c10b3f4c2668a052b89457bd53db14071ffa6
Date: 2017-10-24 00:41:44
User: bohwaz
Comment:Corriger liens wiki internes
Timelines: family | ancestors | descendants | both | trunk | stable
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2017-10-24
01:08
[0aa88dbf39] Ne pas permettre de ne pas changer de cat├ęgorie (user: bohwaz, tags: trunk, stable)
00:41
[152c10b3f4] Corriger liens wiki internes (user: bohwaz, tags: trunk, stable)
00:06
[1406738596] Fix erreur #1xreio1p typo m├ęthode (user: bohwaz, tags: trunk, stable)
Changes

Modified src/include/lib/Garradin/Template.php from [cd7b38a702] to [0b1f08cd93].

93
94
95
96
97
98
99

100

101
102
103
104
105
106
107
		});

		$this->register_modifier('html_money', function ($number) {
			return '<b class="money">' . number_format((float)$number, 2, ',', '&nbsp;') . '</b>';
		});

		$this->register_modifier('format_wiki', function ($str) {

			return Squelette_Filtres::formatter_texte($str);

		});

		$this->register_modifier('liens_wiki', function ($str, $prefix) {
			return preg_replace_callback('!<a href="([^/.:@]+)">!i', function ($matches) use ($prefix) {
				return '<a href="' . $prefix . Wiki::transformTitleToURI($matches[1]) . '">';
			}, $str);
		});







>
|
>







93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
		});

		$this->register_modifier('html_money', function ($number) {
			return '<b class="money">' . number_format((float)$number, 2, ',', '&nbsp;') . '</b>';
		});

		$this->register_modifier('format_wiki', function ($str) {
			$str = Utils::SkrivToHTML($str);
			$str = Squelette_Filtres::typo_fr($str);
			return $str;
		});

		$this->register_modifier('liens_wiki', function ($str, $prefix) {
			return preg_replace_callback('!<a href="([^/.:@]+)">!i', function ($matches) use ($prefix) {
				return '<a href="' . $prefix . Wiki::transformTitleToURI($matches[1]) . '">';
			}, $str);
		});