// $CFG->allowvisiblecoursesinhiddencategories = true;
//
// NOTE: if you are using custompix in your theme, see /fixpix.php.
-
+//
+// special magic evil developer only wanting to edit the xmldb files manually
+// uncomment these if you're lazy like Penny
+// $CFG->xmldbdisablecommentchecking = true;
+// $CFG->xmldbdisablenextprevchecking = true;
+//
//=========================================================================
// ALL DONE! To continue installation, visit your main page with a browser
//=========================================================================
* have a consistent info in their previous/next fields
*/
function checkPreviousNextValues(&$arr) {
+ global $CFG;
+ if (!empty($CFG->xmldbdisablenextprevchecking)) {
+ return true;
+ }
$result = true;
/// Check that only one element has the previous not set
if ($arr) {
* the previous/next rules
*/
function orderElements($arr) {
+ global $CFG;
$result = true;
+ if (!empty($CFG->xmldbdisablenextprevchecking)) {
+ return $arr;
+ }
/// Create a new array
$newarr = array();
if (!empty($arr)) {
*/
function arr2XMLDBStructure($xmlarr) {
+ global $CFG;
+
$result = true;
/// Debug the structure
}
if (isset($xmlarr['XMLDB']['@']['COMMENT'])) {
$this->comment = trim($xmlarr['XMLDB']['@']['COMMENT']);
+ } else if (!empty($CFG->xmldbdisablecommentchecking)) {
+ $this->comment = '';
} else {
$this->errormsg = 'Missing COMMENT attribute';
$this->debug($this->errormsg);
*/
function arr2XMLDBTable($xmlarr) {
+ global $CFG;
+
$result = true;
/// Debug the table
}
if (isset($xmlarr['@']['COMMENT'])) {
$this->comment = trim($xmlarr['@']['COMMENT']);
+ } else if (!empty($CFG->xmldbdisablecommentchecking)) {
+ $this->comment = '';
} else {
$this->errormsg = 'Missing COMMENT attribute';
$this->debug($this->errormsg);