From e194b8efc61ecdcb2d1fe72f2c5195cd13191629 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Wed, 13 May 2009 16:14:20 -0400 Subject: [PATCH] Rename AutoFormatParam.PurifierLinkifyDocURL. Signed-off-by: Edward Z. Yang --- NEWS | 2 ++ library/HTMLPurifier/ConfigSchema/schema.ser | Bin 12243 -> 12364 bytes ...RL.txt => AutoFormat.PurifierLinkify.DocURL.txt} | 4 ++-- .../HTMLPurifier/DefinitionCache/Serializer/README | 0 library/HTMLPurifier/Injector/PurifierLinkify.php | 2 +- tests/HTMLPurifier/Injector/PurifierLinkifyTest.php | 2 +- 6 files changed, 6 insertions(+), 4 deletions(-) rewrite library/HTMLPurifier/ConfigSchema/schema.ser (71%) rename library/HTMLPurifier/ConfigSchema/schema/{AutoFormatParam.PurifierLinkifyDocURL.txt => AutoFormat.PurifierLinkify.DocURL.txt} (75%) mode change 100644 => 100755 library/HTMLPurifier/DefinitionCache/Serializer/README diff --git a/NEWS b/NEWS index 14959a64..9a56421b 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,8 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier # APIs for ConfigSchema subsystem have substantially changed. See docs/dev-config-bcbreaks.txt for details; in essence, anything that had both namespace and directive now have a single unified key. +# Some configuration directives were renamed, specifically: + %AutoFormatParam.PurifierLinkifyDocURL -> %AutoFormat.PurifierLinkify.DocURL ! More robust support for name="" and id="" ! HTMLPurifier_Config::inherit($config) allows you to inherit one configuration, and have changes to that configuration be propagated diff --git a/library/HTMLPurifier/ConfigSchema/schema.ser b/library/HTMLPurifier/ConfigSchema/schema.ser dissimilarity index 71% index 1e324df664e5815c7d6996cf40307399cdba2443..5dc9a5ac85421ffafb2918982ade1ae411df2d70 100644 GIT binary patch delta 152 zcwW04eoFJ%BsamljjJY**st90rzHe{tUwE z1bG-uH*b_%4pYekSD9&LI9ZliZ*sDp98``SDmO`8eDZujg~=6)y_4q)No@90YUKq0 DAWbfa delta 97 zcwRe`a5;WMIMZY%C56fF1XoV3Rn+DzwlcO-QdTWi+8n^_&4*L!G56$hIYUO1$<_Qy bn@`KNf(%&;QpKEUWjHy2S$gwvrB+@5IgcNa diff --git a/library/HTMLPurifier/ConfigSchema/schema/AutoFormatParam.PurifierLinkifyDocURL.txt b/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.PurifierLinkify.DocURL.txt similarity index 75% rename from library/HTMLPurifier/ConfigSchema/schema/AutoFormatParam.PurifierLinkifyDocURL.txt rename to library/HTMLPurifier/ConfigSchema/schema/AutoFormat.PurifierLinkify.DocURL.txt index 3e8309e3..db58b134 100644 --- a/library/HTMLPurifier/ConfigSchema/schema/AutoFormatParam.PurifierLinkifyDocURL.txt +++ b/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.PurifierLinkify.DocURL.txt @@ -1,9 +1,9 @@ -AutoFormatParam.PurifierLinkifyDocURL +AutoFormat.PurifierLinkify.DocURL TYPE: string VERSION: 2.0.1 DEFAULT: '#%s' +ALIASES: AutoFormatParam.PurifierLinkifyDocURL --DESCRIPTION-- -

Location of configuration documentation to link to, let %s substitute into the configuration's namespace and directive names sans the percent diff --git a/library/HTMLPurifier/DefinitionCache/Serializer/README b/library/HTMLPurifier/DefinitionCache/Serializer/README old mode 100644 new mode 100755 diff --git a/library/HTMLPurifier/Injector/PurifierLinkify.php b/library/HTMLPurifier/Injector/PurifierLinkify.php index a8549688..ad2455a9 100644 --- a/library/HTMLPurifier/Injector/PurifierLinkify.php +++ b/library/HTMLPurifier/Injector/PurifierLinkify.php @@ -12,7 +12,7 @@ class HTMLPurifier_Injector_PurifierLinkify extends HTMLPurifier_Injector public $needed = array('a' => array('href')); public function prepare($config, $context) { - $this->docURL = $config->get('AutoFormatParam.PurifierLinkifyDocURL'); + $this->docURL = $config->get('AutoFormat.PurifierLinkify.DocURL'); return parent::prepare($config, $context); } diff --git a/tests/HTMLPurifier/Injector/PurifierLinkifyTest.php b/tests/HTMLPurifier/Injector/PurifierLinkifyTest.php index bcb7903c..774b234a 100644 --- a/tests/HTMLPurifier/Injector/PurifierLinkifyTest.php +++ b/tests/HTMLPurifier/Injector/PurifierLinkifyTest.php @@ -6,7 +6,7 @@ class HTMLPurifier_Injector_PurifierLinkifyTest extends HTMLPurifier_InjectorHar function setup() { parent::setup(); $this->config->set('AutoFormat.PurifierLinkify', true); - $this->config->set('AutoFormatParam.PurifierLinkifyDocURL', '#%s'); + $this->config->set('AutoFormat.PurifierLinkify.DocURL', '#%s'); } function testNoTriggerCharacer() { -- 2.11.4.GIT