Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Probably outdated file in components/com_contact #10694

Closed
jo-sf opened this issue May 31, 2016 · 9 comments
Closed

Probably outdated file in components/com_contact #10694

jo-sf opened this issue May 31, 2016 · 9 comments

Comments

@jo-sf
Copy link
Contributor

jo-sf commented May 31, 2016

In searching for all XML forms that define the field "custom_reply" I found beside some other files the file

components/com_contact/models/forms/form.xml

But when I checked the contents of this XML file and compared it with the other XML files I found I had the strong suspicion that this file is no longer up-to-date and is no longer used.

Main reason for this suspect is that some of the message defines used in that XML file don't exist in any language file, e.g. "CONTACT_CONFIG_CUSTOM_REPLY_DESC" or "Contact_Email_BANNED_SUBJECT_DESC" (note the upper/lower case form).

Can you please check whether this XML file is still in use?

@ghost
Copy link

ghost commented Jun 5, 2016

Yes, it's outdated since J!1.6.? when contact was moved to JForm. form.xml was replaced by contact.xml then.
a34dd3d#diff-bcdc310b6bd770234bbf93e90ba81937

Found no issues in com_contact after I've deleted form.xml from current staging installation.

@ghost
Copy link

ghost commented Jun 5, 2016

Please test PR 10730
EDIT: PR closed because of next comment.

@brianteeman
Copy link
Contributor

I am guessing that it was kept originally because a third party template
could be using it and unless it has been marked as deprecated we cant just
remove it.

On 5 June 2016 at 09:55, bertmert notifications@github.com wrote:

Please test #10730 #10730


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#10694 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABPH8ZCXNcOFePAxoy2VhI84wzpgKt2Eks5qIo8FgaJpZM4IqvQU
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

@jo-sf
Copy link
Contributor Author

jo-sf commented Jun 5, 2016

@brianteeman
Even if this file has been kept because it is or was probably used by a third-party template it will no longer work today since the message defines used in that XML file no longer exist in any .ini file. So if any template should really still use this file (or depends upon the existence of this file) this template itself is IMO outdated and should be changed accordingly.

You say that the XML file should be marked as deprecated prior that it can be removed. How can you mark an XML file as deprecated? I've seen functions being marked that way - but XML files?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10694.

@brianteeman
Copy link
Contributor

Fair point. Can you submit a PR to remove it?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10694.

@jo-sf
Copy link
Contributor Author

jo-sf commented Jun 10, 2016

Please see PR #10786

This PR currently only removes the file form.xml from future versions.

I think the file shall be added to administrator/components/com_admin/script.php but I'm not sure with which Joomla version this patch will be applied.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10694.

@infograf768
Copy link
Member

To consider it as deprecated but still let use it for B/C (unlikely used but one never knows...), it should not be added to deleteUnexistingFiles() in script.php.

@mbabker
Copy link
Contributor

mbabker commented Jun 11, 2016

Then it can't be deleted at all because then it's inconsistent (the file exists on sites created and updated from 1.6 to 3.5.1 but not 3.6 or later). Either it goes completely away in one pull request or it stays in the system.

@brianteeman
Copy link
Contributor

Closed as there is a PR


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10694.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants