Changeset 420 for trunk/lib/ACL.inc.php
- Timestamp:
- Jul 3, 2013 4:19:34 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/ACL.inc.php
r396 r420 117 117 return $this->_params[$param]; 118 118 } else { 119 $app->logMsg(sprintf('Parameter is not set: %s', $param), LOG_ DEBUG, __FILE__, __LINE__);119 $app->logMsg(sprintf('Parameter is not set: %s', $param), LOG_NOTICE, __FILE__, __LINE__); 120 120 return null; 121 121 } … … 261 261 $qid = $db->query("SELECT 1 FROM $tbl WHERE name = '" . $db->escapeString($name) . "'"); 262 262 if (mysql_num_rows($qid) > 0) { 263 $app->logMsg(sprintf('Cannot add %s node, already exists: %s', $type, $name), LOG_ NOTICE, __FILE__, __LINE__);263 $app->logMsg(sprintf('Cannot add %s node, already exists: %s', $type, $name), LOG_INFO, __FILE__, __LINE__); 264 264 return false; 265 265 } … … 346 346 $qid = $db->query("SELECT lft, rgt FROM $tbl WHERE name = '" . $db->escapeString($name) . "'"); 347 347 if (!list($lft, $rgt) = mysql_fetch_row($qid)) { 348 $app->logMsg(sprintf('Cannot delete nonexistent %s name: %s', $type, $name), LOG_ NOTICE, __FILE__, __LINE__);348 $app->logMsg(sprintf('Cannot delete nonexistent %s name: %s', $type, $name), LOG_WARNING, __FILE__, __LINE__); 349 349 return false; 350 350 } … … 433 433 $qid = $db->query("SELECT lft, rgt FROM $tbl WHERE name = '" . $db->escapeString($name) . "'"); 434 434 if (!list($lft, $rgt) = mysql_fetch_row($qid)) { 435 $app->logMsg(sprintf('Cannot move nonexistent %s name: %s', $type, $name), LOG_ NOTICE, __FILE__, __LINE__);435 $app->logMsg(sprintf('Cannot move nonexistent %s name: %s', $type, $name), LOG_WARNING, __FILE__, __LINE__); 436 436 return false; 437 437 } … … 618 618 if (mb_substr_count($final_where, 'IS NOT NULL') == 3) { 619 619 // Null on all three tables will delete ALL entries including the root -> root -> root = deny. 620 $app->logMsg( sprintf('Cannot allow deletion of ALL acl entries.', null), LOG_NOTICE, __FILE__, __LINE__);620 $app->logMsg('Cannot allow deletion of ALL acl entries.', LOG_WARNING, __FILE__, __LINE__); 621 621 return false; 622 622 }
Note: See TracChangeset
for help on using the changeset viewer.