Advertisement:

Author Topic: Patcher for new versions  (Read 860 times)

morvy

  • Full Member
  • ***
  • Posts: 103
  • always dissatisfied
Patcher for new versions
« on: September 03, 2011, 05:37:04 pm »
Is it possible to create batch patcher, that replaces old code with new one, so I don't have to check for changes and apply them manually? :)
it could work like this:

1. find file that will be patched
2. find whole block that has to be deleted
3. write new block in the same place
4. if no block found (user has modified that part of code) throw an exception
5. log file informing about successful and unsuccessful replaces

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: Patcher for new versions
« Reply #1 on: September 05, 2011, 10:28:05 am »
Hi morvy,


That will waste a lot of our time. Users should not modify core files, because we can not be sure  that with the modification it still works, it also could introduce errors which are not in the original branch of code and drive us crazy trying to find non-existing errors.

If you need to do any modification, I will suggest you create a plugin instead of modifying core files, if the plugin, for some reason, it's not possible, then contact us and we'll suggest you the best way to do it, or modify core files in order to include your modification or allowing you to create a plugin.


If you're talking about the theme, I would STRONGLY recommend, that if you want to modify it, create a new one (or it will be overwritten with each upgrade). In case you create a NEW theme, it's not possible for us to program a batch updater, since the structure of it could be completely different from official theme