Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
nck_olm and r1542
Although the plugin seemed to work, I was plagued by multiple error messages. I made the follow changes:
1) added two globals to nck_olm_permlinkurl
global $thisarticle, $s;
2) commented out the two lines under // define section of article and added this
$section = $thisarticle[‘section’]; if (empty($section)) $section = $s;
As far as I can tell the plugin still works and the error messages have gone away. Use at your own risk!
Michael
Offline
Re: nck_olm and r1542
I’m pretty sure the global $s is deprecated, and only left in for backwards plugin compatability. You should be using $pretext[‘s’].
Offline
Re: nck_olm and r1542
Did that happen recently? I lifted the code from a copy of taghandlers.php, specifically the section function.
Offline
Re: nck_olm and r1542
Uhm, I’m not sure when it happened, but it is indeed deprecated, as seen here in publish.php.
Offline
#5 2006-09-08 00:26:47
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: nck_olm and r1542
Yes, we’re getting too many global variables floating about. :)
Offline
Pages: 1