Re: PunBB 1.2.7
Thanks. Now, any ideas why Patch said "hunk failed"?
You are not logged in. Please login or register.
PunBB Forums → News → PunBB 1.2.7
Thanks. Now, any ideas why Patch said "hunk failed"?
Well, what does admin_options.php.rej say?
Have a look at admin_options.php.rej to see which replacement didn't work.
o.t.
"Programming is like sex: one mistake and you have to support it for the rest of your life."
----
LOL lmao!
Can I use the patch to upgrade from 1.2.2 directly to 1.2.7 ?
Or do I have to do each incremental upgrade (hopefully not) ?
The patch is for 1.2.6 > 1.2.7 so you are best off just downloading the complete 1.2.7
Well, I have made a bunch of customizations so, I was hoping to only change what is needed...
There's a patch to take you from 1.2.2 to 1.2.7 as well. Just have a look in the patch directory.
Have a look at admin_options.php.rej to see which replacement didn't work.
***************
*** 117,123 ****
while (list($key, $input) = @each($form))
{
// Only update values that have changed
- if (isset($pun_config['o_'.$key]) && $pun_config['o_'.$key] != $input)
{
if ($input != '' || is_int($input))
$value = '\''.$db->escape($input).'\'';
--- 117,123 ----
while (list($key, $input) = @each($form))
{
// Only update values that have changed
+ if (array_key_exists('o_'.$key, $pun_config) && $pun_config['o_'.$key] != $input)
{
if ($input != '' || is_int($input))
$value = '\''.$db->escape($input).'\'';
So that replacement should have failed, right? But in fact, it didn't. The code in admin_options.php is correct...
Strange, thanks anyway to you who helped.
PunBB Forums → News → PunBB 1.2.7
Powered by PunBB, supported by Informer Technologies, Inc.