26

Re: PunBB 1.2.7

Thanks. Now, any ideas why Patch said "hunk failed"?

Aftonbörsens skapare. Var med och starta något roligt och stort du med!

Re: PunBB 1.2.7

Well, what does admin_options.php.rej say?

http://fluxbb.org

Free PunBB Hosting - lots of mods, easy to customize

Re: PunBB 1.2.7

Have a look at admin_options.php.rej to see which replacement didn't work.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: PunBB 1.2.7

o.t.
"Programming is like sex: one mistake and you have to support it for the rest of your life."
----
LOL lmao!

Re: PunBB 1.2.7

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) ?

31

Re: PunBB 1.2.7

The patch is for 1.2.6 > 1.2.7 so you are best off just downloading the complete 1.2.7

Re: PunBB 1.2.7

Well, I have made a bunch of customizations so, I was hoping to only change what is needed...

Re: PunBB 1.2.7

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.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

34

Re: PunBB 1.2.7

Rickard wrote:

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.

Aftonbörsens skapare. Var med och starta något roligt och stort du med!