Overview
Comment:Fix atom_date modifier, thanks @zou
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | 1.1.8
Files: files | file ages | folders
SHA3-256: 4a609e78c7681ae77a2a274c265ff13305ca2375195a78a3ba8270de80675f32
User & Date: bohwaz on 2021-06-18 09:42:42
Other Links: manifest | tags
Context
2021-06-18
10:10
Fix point m├ędian check-in: 43af577888 user: bohwaz tags: trunk, stable, 1.1.8
09:42
Fix atom_date modifier, thanks @zou check-in: 4a609e78c7 user: bohwaz tags: trunk, 1.1.8
09:37
Prepend AND to WHERE clause in sql template sections, if missing, thanks @zou check-in: e3170a7744 user: bohwaz tags: trunk
Changes

Modified src/include/lib/Garradin/UserTemplate/Modifiers.php from [e9e89801c5] to [e398fea153].

112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
		else {
			return '<a href="'.htmlspecialchars($contact, ENT_QUOTES, 'UTF-8').'">'.htmlspecialchars($contact, ENT_QUOTES, 'UTF-8').'</a>';
		}
	}

	static public function atom_date($date)
	{
		return Utils::date_fr(DATE_ATOM, $date);
	}

	static public function xml_escape($str)
	{
		return htmlspecialchars($str, ENT_XML1);
	}
}







|







112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
		else {
			return '<a href="'.htmlspecialchars($contact, ENT_QUOTES, 'UTF-8').'">'.htmlspecialchars($contact, ENT_QUOTES, 'UTF-8').'</a>';
		}
	}

	static public function atom_date($date)
	{
		return Utils::date_fr($date, DATE_ATOM);
	}

	static public function xml_escape($str)
	{
		return htmlspecialchars($str, ENT_XML1);
	}
}