svn: /web/doc-editor/trunk/php/ ToolsError.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Fri, 01 Jan 2010 22:45:56 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=292907

Log:
Fix bug in ToolsErrors

Changed paths:
    U   web/doc-editor/trunk/php/ToolsError.php

Modified: web/doc-editor/trunk/php/ToolsError.php
===================================================================
--- web/doc-editor/trunk/php/ToolsError.php	2010-01-01 22:03:28 UTC (rev 292906)
+++ web/doc-editor/trunk/php/ToolsError.php	2010-01-01 22:45:56 UTC (rev 292907)
@@ -4,6 +4,7 @@
  */

 require_once dirname(__FILE__) . '/DBConnection.php';
+require_once dirname(__FILE__) . '/AccountManager.php';

 class ToolsError {

@@ -182,7 +183,7 @@
      */
     function getFilesError($ModifiedFiles) {

-        if ( $_SESSION['userConf']->errorSkipNbLiteralTag ) {
+        if ( AccountManager::getInstance()->userConf->errorSkipNbLiteralTag ) {
             $type = ' type != \'nbLiteralTag\' AND ';
         } else {
             $type = '';
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.