Skip to content

Commit 48b1457

Browse files
committed
Revert "scss compiler:"
This reverts commit 423d268.
1 parent 423d268 commit 48b1457

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

ext/arty/scss/acp/scss_module.php

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010

1111
namespace arty\scss\acp;
1212

13-
require_once( __DIR__ . '/scssphp/scss.inc.php' );
14-
use ScssPhp\ScssPhp\Compiler;
15-
1613
class scss_module
1714
{
1815
/** @var string */
@@ -183,7 +180,6 @@ protected function compile($style, $path)
183180
'files' => array(),
184181
);
185182

186-
/*
187183
foreach ($scss as $file)
188184
{
189185
if ($file == 'stylesheet.scss')
@@ -192,14 +188,7 @@ protected function compile($style, $path)
192188
}
193189
$post['files'][$file] = @file_get_contents($path . $file);
194190
}
195-
*/
196-
197-
$compiler = new Compiler();
198-
$compiler->setOutputStyle = \ScssPhp\ScssPhp\OutputStyle::EXPANDED;
199-
$cssResult = $compiler->compileString( $data, $path . 'stylesheet.scss' )->getCss();
200-
$result = json_encode( array('css' => $cssResult ) );
201-
202-
/*
191+
203192
// Send data to server
204193
$url = 'http://phpbb31.artodia.com/scss.php';
205194

@@ -213,7 +202,6 @@ protected function compile($style, $path)
213202
'Content-Length: ' . strlen($encoded))
214203
);
215204
$result = curl_exec($ch);
216-
*/
217205

218206
if (!strlen($result))
219207
{
@@ -335,12 +323,10 @@ protected function find_scss_files($path, $prefix = '')
335323
*/
336324
protected function assert_required_modules()
337325
{
338-
/*
339326
if (!function_exists('curl_init'))
340327
{
341328
trigger_error($this->user->lang['ACP_SCSS_MISSING_CURL'] . adm_back_link($this->u_action), E_USER_WARNING);
342329
}
343-
*/
344330
if (!function_exists('json_encode'))
345331
{
346332
trigger_error($this->user->lang['ACP_SCSS_MISSING_JSON'] . adm_back_link($this->u_action), E_USER_WARNING);

ext/arty/scss/acp/scssphp

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)