]> p2p-next.cs.pub.ro Git - living-lab-site.git/blobdiff - application/controllers/catalog.php
working on widget video resizing integration
[living-lab-site.git] / application / controllers / catalog.php
index 3285c67a244ea3da3eb66186d8c651446d9e988c..fec8d642854418842fbd53dee49b35928d9f0f98 100644 (file)
@@ -57,10 +57,9 @@ class Catalog extends CI_Controller {
        {
                $this->load->helper('url');
                
-               $str = '[{"def":"1080p"},{"def":"600p"}]';
-               $a = json_decode($str);
+               $str = '800x600';
                
-               echo count($a);
+               echo substr($str, strpos($str, 'x') + 1);
        }
        
        public function category($category_id, $offset = 0)