We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    While poking at the /manager/index.php file, I notices something that puzzles me. Near the end, around line 67, I find this code:
    $modx->getRequest();
    $modx->getParser();
    
    if (isset($modx) && is_object($modx) && $modx instanceof modX) {
        if (!$modx->getRequest()) {
            $modx->log(modX::LOG_LEVEL_FATAL,"Could not load the MODX manager request object.");
        }
        if (!MODX_API_MODE) {
            $modx->request->handleRequest();
        }
    }
    

    Can somebody explain why getRequest is called, then called again after some sanity checks?
      Studying MODX in the desert - http://sottwell.com
      Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
      Join the Slack Community - http://modx.org