bjori           Sun Aug  5 17:47:49 2007 UTC

  Modified files:              
    /phd        build.php 
  Log:
  Make sure we have a cache directory to write to
  
  
http://cvs.php.net/viewvc.cgi/phd/build.php?r1=1.5&r2=1.6&diff_format=u
Index: phd/build.php
diff -u phd/build.php:1.5 phd/build.php:1.6
--- phd/build.php:1.5   Sun Aug  5 14:49:55 2007
+++ phd/build.php       Sun Aug  5 17:47:49 2007
@@ -1,6 +1,6 @@
 #!/home/bjori/.apps/bin/php
 <?php
-/*  $Id: build.php,v 1.5 2007/08/05 14:49:55 bjori Exp $ */
+/*  $Id: build.php,v 1.6 2007/08/05 17:47:49 bjori Exp $ */
 
 function err($no, $str, $file, $line) {
        global $notify;
@@ -25,6 +25,7 @@
        set_error_handler("err");
 }
 
+if(!file_exists("cache") || is_file("cache")) mkdir("cache") or die("Can't 
create the cache directory");
 require "include/PhDReader.class.php";
 require "include/PhDFormat.class.php";
 require "formats/xhtml.php";

Reply via email to