Removed LessStylesheetsPage
authorAlexander Ebert <ebert@woltlab.com>
Sun, 14 Oct 2012 00:12:51 +0000 (02:12 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 14 Oct 2012 00:12:51 +0000 (02:12 +0200)
Fixes #813

wcfsetup/install/files/lib/acp/page/LessStylesheetsPage.class.php [deleted file]
wcfsetup/install/files/lib/page/LessStylesheetsPage.class.php [deleted file]

diff --git a/wcfsetup/install/files/lib/acp/page/LessStylesheetsPage.class.php b/wcfsetup/install/files/lib/acp/page/LessStylesheetsPage.class.php
deleted file mode 100644 (file)
index 399660a..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-namespace wcf\acp\page;
-
-class LessStylesheetsPage extends \wcf\page\LessStylesheetsPage { }
diff --git a/wcfsetup/install/files/lib/page/LessStylesheetsPage.class.php b/wcfsetup/install/files/lib/page/LessStylesheetsPage.class.php
deleted file mode 100644 (file)
index c2645b6..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-namespace wcf\page;
-use wcf\data\application\Application;
-
-class LessStylesheetsPage extends AbstractPage {
-       public function show() {
-               if (defined('LESS_FILES') && LESS_FILES) {
-                       @header('Content-Type: text/css');
-                       
-                       foreach (explode("\n", LESS_FILES) as $stylesheet) {
-                               $path = WCF_DIR . 'style/'.trim($stylesheet).'.less';
-                               if (!file_exists($path)) {
-                                       echo "\n\nFILE NOT FOUND: ".$path."\n\n\n";
-                               }
-                               else {
-                                       $content = file_get_contents($path);
-                                       
-                                       // use absolute path for url()
-                                       $application = new Application(1);
-                                       $absolutePath = $application->domainName . $application->domainPath;
-                                       $content = preg_replace('~url\(\'..\/~', 'url(\''.$absolutePath, $content);
-                                       $content = preg_replace('~@import "([a-zA-Z]+)\.less";~', '@import "' . $absolutePath . 'style/$1.less";', $content);
-                                       
-                                       echo $content;
-                               }
-                       }
-               }
-       }
-}