[Pmwiki-users] Questions about upload.php

Christian Ridderström chr
Sun Jan 25 05:04:20 CST 2004


While trying to wrap up my modifications to [[$Attachlist:]], I noticed 
something in this function:

function HandleUpload($pagename) {
  global $UploadList,$HandleUploadFmt;
  $page = RetrieveAuthPage($pagename,'upload');
  if (!$page) { Abort("?cannot upload to $pagename"); }
  $UploadList = FmtUploadList($pagename);
  PrintFmt($pagename,$HandleUploadFmt);
}

what is this '$UploadList'?  I couldn't find that variable actually being 
used anywhere, and I'm wondering since it's assigned the output of 
FmtUploadList(), which will be different now that it's no longer a simple 
list of files, but it can contain directory names etc.

Can I simply remove it, and the call to FmtUploadList($pagename)?

/Christian


-- 
Dr. Christian Ridderstr?m, +46-8-768 39 44       http://www.md.kth.se/~chr




More information about the pmwiki-users mailing list