diff --git a/book.php b/book.php index 4690191..a7d434c 100644 --- a/book.php +++ b/book.php @@ -12,7 +12,7 @@ require_once('author.php'); require_once('tag.php'); require_once ("customcolumn.php"); require_once('data.php'); -require_once('epub.php'); +require_once('resources/php-epub-meta/epub.php'); // Silly thing because PHP forbid string concatenation in class const define ('SQL_BOOKS_LEFT_JOIN', "left outer join comments on comments.book = books.id diff --git a/LICENSE_php-epub-meta b/resources/php-epub-meta/LICENSE_php-epub-meta similarity index 100% rename from LICENSE_php-epub-meta rename to resources/php-epub-meta/LICENSE_php-epub-meta diff --git a/epub.php b/resources/php-epub-meta/epub.php similarity index 99% rename from epub.php rename to resources/php-epub-meta/epub.php index f0aabb8..b6229f3 100644 --- a/epub.php +++ b/resources/php-epub-meta/epub.php @@ -6,7 +6,7 @@ * @author Sébastien Lucas */ -require_once('tbszip.php'); +require_once(realpath( dirname( __FILE__ ) ) . 'tbszip.php'); define ("METADATA_FILE", "META-INF/container.xml"); diff --git a/tbszip.php b/resources/php-epub-meta/tbszip.php similarity index 100% rename from tbszip.php rename to resources/php-epub-meta/tbszip.php