Skip to content
Browse files

Merge pull request #3 from kapooht/master

Moar updates...
  • Loading branch information...
2 parents 94eb68c + 63cb98a commit caf8c23318646b6a84c519153b9a03db4b05da4e @idiot idiot committed Jun 3, 2012
Showing with 9 additions and 6 deletions.
  1. +3 −3 readme.md
  2. +6 −3 spiffing.php
View
6 readme.md
@@ -3,12 +3,12 @@
Why, hello, dear visitor! If you're the kind of person predisposed to converse about the weather over a round of tea and crumpets, then you'll appreciate Spiffing: a CSS preprocessor with only one job — to correct the spelling errors prevalent in the language.
## Requirements:
-PHP 5.2+, well-spelt CSS.
+PHP 5.2+, well-spelt CSS and Apache (if you want clean URLs).
## To install:
1. Download Spiffing (it's the ZIP button up there), and upload to your server.
-2. Prepend all references to your CSS with "spiffing.php?file=" (changing the paths and values where necessary).
+2. Prepend all references to your CSS with "spiffing.php?file=" (changing the paths and values where necessary) or if you want some snazzy clean URLs use the .htaccess file for some super royality goodness.
3. Twirl your moustache in typically-British subdued delight.
## Problems?
-Just send me a message on Twitter. I'm @idiot.
+Just send either one of us a message on Twitter: @idiot, @kapooht.
View
9 spiffing.php
@@ -57,7 +57,7 @@ class spiffing {
* @var boolean
* @access public
*/
- public $fail_gracefully = FALSE;
+ public $fail_gracefully = FALSE;
/*
* Did the operation fail? We shall see.
* This should be set to FALSE by default.
@@ -67,12 +67,12 @@ class spiffing {
*/
private $we_failed = FALSE;
/*
- * The URL hook
+ * The URL hook. Check out the .htaccess for further customisation.
*
* @var string
* @access private
*/
- private $hook = 'spiffing=';
+ private $hook = 'file=';
/*
* The file variable
*
@@ -105,6 +105,9 @@ function __construct($raw = '') {
$this->not_found();
}
$this->css = file_get_contents( $this->file );
+ } else {
+ // No spiffing CSS was found.
+ $this->not_found();
}
$this->process();
}

0 comments on commit caf8c23

Please sign in to comment.
Something went wrong with that request. Please try again.