Changed initial setting of global variable for the document repository from $GLOBALS...