Page Index Toggle Pages: 1
Topic Tools
Normal Topic Glitch in 'sub nopostorder' (Read 2,250 times)
smith21
Support Team
****
Offline



Posts: 4,660
Location: Stockton - on - Tees,  England

None
Re: Glitch in 'sub nopostorder'
Reply #2 - Feb 6th, 2008 at 12:07pm
Post Tools
Off-Topic replies have been moved to this Topic.
  

Cheers
Back to top
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Glitch in 'sub nopostorder'
Reply #1 - Feb 4th, 2008 at 8:53pm
Post Tools
Hi
Done. New Subs.pl in CVS.  Cheesy
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
Carsten
Ex Member


Glitch in 'sub nopostorder'
Feb 4th, 2008 at 8:46pm
Post Tools
Just to make sure no empty 'nopostorder.txt' file is created and to prevent unneeded opening of the file the following highlighted code should be added to 'Subs.pl' - 'nopostorder' sub routine:

Code
Select All
sub nopostorder {
	@nopostorder = ();
	if(!keys(%NoPost)) { return; }
	if (!-e "$vardir/nopostorder.txt") {
		fopen(NPORDER, ">$vardir/nopostorder.txt",1);
		while (($nopostkey, $nopostvalue) = each(%NoPost)) {
			print NPORDER "$nopostkey\n";
		}
		fclose(NPORDER);
	}
	fopen(NPORDER, "$vardir/nopostorder.txt");
	@nopostorder = <NPORDER>;
	fclose(NPORDER);
} 


  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top