Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed asset info + Added abillity to generate Guids

  • Loading branch information...
commit e4089cf38727cdb756e4157036b11226806ef1af 1 parent 5bbb34a
@Artazor Artazor authored
Showing with 11 additions and 2 deletions.
  1. +11 −2 object/object.class.php
View
13 object/object.class.php
@@ -22,6 +22,15 @@ public function pathFor($resource) {
return $this->scope->loader->pathFor(get_class($this),$resource);
}
+ public static function newGuid() {
+ $s = '0123456789abcdef';
+ $r = '';
+ for ($i = 0; $i < 40; $i++) {
+ $r .= $s{mt_rand()%16};
+ }
+ return $r;
+ }
+
private function queueFlash($message, $type = 'info') {
$trace = debug_backtrace();
$trace = $trace[1];
@@ -76,8 +85,8 @@ public function put() {
$js = $assets->js->compile();
return array(
'body' => $body,
- 'less' => $less,
- 'js' => $js
+ 'less' => $this->scope->OXYGEN_ROOT_URI . '/' . $less . '.less',
+ 'js' => $this->scope->OXYGEN_ROOT_URI . '/' . $js . '.js'
);
}
Please sign in to comment.
Something went wrong with that request. Please try again.