Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Install and Upgrade Help => Aiheen aloitti: elkingrey - helmikuu 23, 2011, 10:39:28 IP

Otsikko: 1.1.13 patch I am missing code for ManageNews.php
Kirjoitti: elkingrey - helmikuu 23, 2011, 10:39:28 IP
Hello,

While manually patching my files I find that in the ./Sources/ManageNews.php I am missing the entire code for operation #2. Perhaps It got removed in one of my mods?

if (trim($news) == '') unset($_POST['news'][$i]); else preparsecode($_POST['news'][$i]);

My mods are:
Global Headers and Footers
Ad Mod

And there might be one other but I forget what it is. Any way of finding out which mods I've installed?

Anyways, the main question is what do I do now that I find I am missing code in the ManageNews.php file?

Thank you!
Otsikko: Re: 1.1.13 patch I am missing code for ManageNews.php
Kirjoitti: Oldiesmann - helmikuu 24, 2011, 01:50:12 AP
The code is there - just spread out over 4 lines instead of all on one line.

Lines 167-170:
if (trim($news) == '')
unset($_POST['news'][$i]);
else
preparsecode($_POST['news'][$i]);
Otsikko: Re: 1.1.13 patch I am missing code for ManageNews.php
Kirjoitti: elkingrey - helmikuu 24, 2011, 01:54:16 AP
Yeah, I see it now. I always search just the first line to make it simple on the find command. But for some reason, both Bluefish editor and text editor couldn't find any of those lines of code. Weird.

Thanks for the help!