Overview
Comment:Corriger liens wiki internes
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA1: 152c10b3f4c2668a052b89457bd53db14071ffa6
User & Date: bohwaz on 2017-10-24 00:41:44
Other Links: manifest | tags
Context
2017-10-24
01:08
Ne pas permettre de ne pas changer de cat├ęgorie check-in: 0aa88dbf39 user: bohwaz tags: trunk, stable
00:41
Corriger liens wiki internes check-in: 152c10b3f4 user: bohwaz tags: trunk, stable
00:06
Fix erreur #1xreio1p typo m├ęthode check-in: 1406738596 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);
		});