Working on Automatic Caching feature for CSS and JS files.

Added config options to main Shimmie config.
This commit is contained in:
green-ponies (jgen)
2011-09-25 13:40:34 -04:00
parent a1da59804e
commit 97d137f365
3 changed files with 156 additions and 79 deletions

View File

@@ -555,11 +555,15 @@ function array_remove($array, $to_remove) {
}
/**
* Add an item to an array
* Adds an item to an array.
*
* Also removes duplicate values from the array.
*
* @retval array
*/
function array_add($array, $element) {
// Could we just use array_push() ?
// http://www.php.net/manual/en/function.array-push.php
$array[] = $element;
$array = array_unique($array);
return $array;