Changeset 3812

Show
Ignore:
Timestamp:
09.03.2003 12:04:43 (17 years ago)
Author:
sjboddie
Message:

Prevent disabled functions (collector, admin, translator) from appearing on the homehelp
page.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/pageaction.cpp

    r3774 r3812  
    481481  // _texthelpreadingdocs_  
    482482 
     483  // if page is "home" or "homehelp" 
    483484  // _textgocollector_     set to "" if collector is disabled in main.cfg 
    484485  // _textgoadmin_         set to "" if status is disabled in main.cfg 
     
    544545  } 
    545546 
    546   if (arg_p == "home") { 
    547     set_homeextra_macro (disp, protos, args, logout); 
     547  if (arg_p == "home" || arg_p == "homehelp") { 
    548548    if (status_disabled) disp.setmacro ("textgoadmin", "home", ""); 
    549549    if (collector_disabled) disp.setmacro ("textgocollector", "home", ""); 
    550550    if (translator_disabled) disp.setmacro ("textgotranslator", "home", ""); 
     551 
     552    if (arg_p == "home") { 
     553      set_homeextra_macro (disp, protos, args, logout); 
     554    } else if (arg_p == "homehelp") { 
     555      set_collectionlist_macro (disp, protos, logout); 
     556    } 
    551557 
    552558  } else if (arg_p == "homepref") { 
     
    698704    } 
    699705 
    700   } else if (arg_p == "homehelp") { 
    701      
    702     set_collectionlist_macro (disp, protos, logout); 
    703  
    704706  } else if (arg_p == "docs") { 
    705707