George Mason University Antonin Scalia Law School

Upgrade Notes

WordPress: Just hit the upgrade button

MODX: 1.06

  • Follow Upgrading Guide (Alternate Method).
  • Back up config.inc.php and document.parser.class.inc.php
  • Once upgraded, change default sort order in resource tree:if (!isset($_SESSION['tree_sortby']) && !isset($_SESSION['tree_sortdir'])) {
    // This is the first startup, set default sort order
    $_SESSION['tree_sortby'] = 'menuindex'; // Change menuindex to a value of your choice.
    $_SESSION['tree_sortdir'] = 'ASC';
    }
  • PHx Bug & pageTOC issue: The fix is to increase the pcre.backtrack_limit setting in php.inifrom 100000 to 800000

    [Pcre]
    ;PCRE library backtracking limit.
    pcre.backtrack_limit=800000

Modifying the document.parser.class.inc.php

Add the following codes when upgrade:

// START CODE BY PAUL BOHMAN/DONNY TRUONG
// Ability to get all documents, whether deleted or unpublished, added by Paul Bohman
if ($published == '*') $sqlPublished = '';
else $sqlPublished = "AND sc.published=$published";
if ($deleted == '*') $sqlDeleted = '';
else $sqlDeleted = "AND sc.deleted=$deleted";
// END CODE BY PAUL BOHMAN/DONNY TRUONG

And here:

$result= $this->getTemplateVars($vars, "*", $docid, $published, "", "", $sep, $deleted=0);
// The deleted option above was added by Paul Bohman/Donny Truong

Remember to add the codes for CASifying MODX as well.