Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Quick Edit problem
Pirata Nervo Offline
Member
***
Posts: 235
Joined: Jan 2008
Post: #1
Quick Edit problem
Error:
Fatal error: Call to undefined function format_variable() in /www/freeweb7.com/p/e/r/perfectpredicament/htdocs/forums/xmlhttp.php on line 423

The function is defined in "userformat.php" and I don't know why it says "undefined funciton"
03-01-2008 03:34 AM
Find all posts by this user Quote this message in a reply
Zeta Offline
Bored and experimenting
**
Posts: 9
Joined: Feb 2008
Post: #2
RE: Quick Edit problem
I've gotten this too, but it doesn't seem to stem from MyPlaza. refresh the page and it works.

I dunno what the issue is with it.
03-01-2008 08:36 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #3
RE: Quick Edit problem
Gah, I think I might know.
In xmlhttp.php, just before the ending:

PHP Code:
?>

Add the following:

PHP Code:
1
2
3
4
5
6
7
function format_variable($var, $format)
{
	if($format && strpos($format, '{variable}') !== false)
		return str_replace('{variable}', $var, $format);
	else
		return $var;
}

I'll think up a better fix in the next version.


My Blog
(This post was last modified: 03-01-2008 11:00 AM by ZiNgA BuRgA.)
03-01-2008 10:56 AM
Find all posts by this user Quote this message in a reply
Pirata Nervo Offline
Member
***
Posts: 235
Joined: Jan 2008
Post: #4
RE: Quick Edit problem
Thanks zinga, it worked.
Biggrin
03-01-2008 06:27 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: