[geeklog-cvs] MVCnPHP XMLLoader.class.php,1.1.1.1,1.2

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Wed Apr 9 14:31:18 EDT 2003


Update of /usr/cvs/geeklog/MVCnPHP
In directory internal.geeklog.net:/tmp/cvs-serv24315

Modified Files:
	XMLLoader.class.php 
Log Message:
Got rid of loop that read file contents for a call to file_get_contents instead.

Index: XMLLoader.class.php
===================================================================
RCS file: /usr/cvs/geeklog/MVCnPHP/XMLLoader.class.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** XMLLoader.class.php	5 Apr 2003 20:00:52 -0000	1.1.1.1
--- XMLLoader.class.php	9 Apr 2003 18:31:16 -0000	1.2
***************
*** 60,67 ****
          }
          if (empty($this->_arrayData)) {                
!             $fp = fopen($arrayData,'r');
!             while (!feof($fp)) {
!                 $xmlData .= fgets($fp,128);
!             }
              $this->_arrayData = $this->_XMLToArray($xmlData);
          }
--- 60,64 ----
          }
          if (empty($this->_arrayData)) {                
!             $xmlData = file_get_contents($arrayData);
              $this->_arrayData = $this->_XMLToArray($xmlData);
          }





More information about the geeklog-cvs mailing list