changeset 55:e930eb88b547 extractapp

bug fixed: when addTagTitle, removing self-closing tag which causes error in coloring tag
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Mon, 30 Mar 2015 15:43:47 +0200
parents f9e7119339b2
children 95f929d7b318
files models/extractapp.php
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/models/extractapp.php	Mon Mar 30 15:34:47 2015 +0200
+++ b/models/extractapp.php	Mon Mar 30 15:43:47 2015 +0200
@@ -404,7 +404,7 @@
             if ( file_exists("data/parsing_files/".$_postdata['sectionId'].".txt") ) {
                 $oldFile = file_get_contents("data/parsing_files/".$_postdata['sectionId'].".txt");
                 //saving in my local machine in developing phrase
-                file_put_contents("data/parsing_files/".$_postdata['sectionId']."_".$date.".txt", $oldFile);
+                //file_put_contents("data/parsing_files/".$_postdata['sectionId']."_".$date.".txt", $oldFile);
             }
             
             if (get_magic_quotes_gpc()) {
@@ -420,7 +420,7 @@
             $require = preg_replace("/○/u", " ", $require); 
             $require = preg_replace("/<br>/u", "\n", $require);
             //$require = preg_replace("/<br>/u", "\n", $require);
-            
+
             echo "----------------------------------<br>";
             echo "Debug: (full text after) ". $require;
 
@@ -431,7 +431,7 @@
             $require = $this->AppendMetaData($require);
                 
             //saving in my local machine in developing phrase
-            file_put_contents("data/parsing_files/".$_postdata['sectionId'].".txt", $require);
+            //file_put_contents("data/parsing_files/".$_postdata['sectionId'].".txt", $require);
         } 
 
         // ------
@@ -479,7 +479,7 @@
 
         // execute the request
         // **** commended to DEBUG ***
-        //$output = curl_exec($ch);
+        $output = curl_exec($ch);
         // *****
 
         // output the profile information - includes the header