<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -675,6 +675,7 @@ a.prev_page:hover {
 }
 button:active,
 .button:active,
+.button.selected,
 a.next_page:active,
 a.prev_page:active {
     background-color: #d7d7d7;</diff>
      <filename>admin/themes/default/style.css</filename>
    </modified>
    <modified>
      <diff>@@ -71,15 +71,16 @@
                     $this-&gt;method = &quot;mysqli&quot;;
                 elseif ($this-&gt;adapter == &quot;mysql&quot; and function_exists(&quot;mysql_connect&quot;))
                     $this-&gt;method = &quot;mysql&quot;;
-                elseif ($this-&gt;adapter == &quot;sqlite&quot; and in_array(&quot;sqlite&quot;, PDO::getAvailableDrivers()) or
-                        $this-&gt;adapter == &quot;pgsql&quot; and in_array(&quot;pgsql&quot;, PDO::getAvailableDrivers()))
+                elseif (class_exists(&quot;PDO&quot;) and
+                        ($this-&gt;adapter == &quot;sqlite&quot; and in_array(&quot;sqlite&quot;, PDO::getAvailableDrivers()) or
+                         $this-&gt;adapter == &quot;pgsql&quot; and in_array(&quot;pgsql&quot;, PDO::getAvailableDrivers())))
                     $this-&gt;method = &quot;pdo&quot;;
             } else
                 if (class_exists(&quot;MySQLi&quot;))
                     $this-&gt;method = &quot;mysqli&quot;;
                 elseif (function_exists(&quot;mysql_connect&quot;))
                     $this-&gt;method = &quot;mysql&quot;;
-                elseif (in_array(&quot;mysql&quot;, PDO::getAvailableDrivers()))
+                elseif (class_exists(&quot;PDO&quot;) and in_array(&quot;mysql&quot;, PDO::getAvailableDrivers()))
                     $this-&gt;method = &quot;pdo&quot;;
         }
 
@@ -217,7 +218,7 @@
                                             &quot;TEXT&quot;,
                                             &quot;INSERT INTO&quot;),
                                       $query);
-            
+
             $query = new Query($this, $query, $params, $throw_exceptions);
 
             return (!$query-&gt;query and UPGRADING) ? false : $query ;</diff>
      <filename>includes/class/SQL.php</filename>
    </modified>
    <modified>
      <diff>@@ -120,6 +120,10 @@ class Twig_LoopContextIterator implements Iterator
     }
 }
 
+function unretarded_array_unshift(&amp;$arr, &amp;$val) {
+    $arr = array_merge(array(&amp;$val), $arr);
+}
+
 /**
  * This is called like an ordinary filter just with the name of the filter
  * as first argument.  Currently we just raise an exception here but it
@@ -135,9 +139,10 @@ function twig_missing_filter($name)
     array_shift($args);
 
     array_unshift($args, $name);
-    array_unshift($args, $text);
+    unretarded_array_unshift($args, $text);
 
     $trigger = Trigger::current();
+
     if ($trigger-&gt;exists($name))
         return call_user_func_array(array($trigger, &quot;filter&quot;), $args);
 </diff>
      <filename>includes/class/Twig/runtime.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e28c562cbcb6b2eb222b2961ee7bd86a09159fb9</id>
    </parent>
  </parents>
  <author>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </author>
  <url>http://github.com/vito/chyrp/commit/a373645ec77775d40fb0b9e15a7c94dde5dbfc41</url>
  <id>a373645ec77775d40fb0b9e15a7c94dde5dbfc41</id>
  <committed-date>2009-08-29T07:21:07-07:00</committed-date>
  <authored-date>2009-08-29T07:19:07-07:00</authored-date>
  <message>* Fixed Twig filter fallback in PHP 5.3. [#46 state:resolved]
* Fixed some logic in SQL class to check for the PDO class before using a PDO function.
* Fixed buttons not having a .selected style (e.g. while previewing a theme, the preview button for it should be depressed)</message>
  <tree>937083374992327d229fe25e212eb4fcc6dfa074</tree>
  <committer>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </committer>
</commit>
