Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added file path option to process method.

  • Loading branch information...
commit be49a1b2d7c7d067af526ffb0274193288b00115 1 parent 78aeb8c
@fyrebase authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 scaffold/libraries/Scaffold/Scaffold.php
View
6 scaffold/libraries/Scaffold/Scaffold.php
@@ -394,7 +394,7 @@ public static function setup($config)
* @param $file The file to the parsed
* @return $css string
*/
- public static function process($file)
+ public static function process($file, $filePath = null)
{
/**
* This allows Scaffold to find files in the directory of the CSS file
@@ -408,6 +408,10 @@ public static function process($file)
*/
Scaffold::$css = new Scaffold_CSS($file);
+ if ($filePath) {
+ Scaffold::$css->path = $filePath;
+ }
+
/**
* Import Process Hook
* This hook is for doing any type of importing/including in the CSS
Please sign in to comment.
Something went wrong with that request. Please try again.