We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit c712eefe authored by Evan Prodromou's avatar Evan Prodromou

Merge branch '1.0.x' into activity

parents eb6cece8 ce5b4415
......@@ -34,11 +34,12 @@ class Memcached_DataObject extends Safe_DataObject
{
if (is_null($v)) {
$v = $k;
// XXX: HACK!
$i = new $cls;
$keys = $i->keys();
$keys = self::pkeyCols($cls);
if (count($keys) > 1) {
// FIXME: maybe call pkeyGet() ourselves?
throw new Exception('Use pkeyGet() for compound primary keys');
}
$k = $keys[0];
unset($i);
}
$i = Memcached_DataObject::getcached($cls, $k, $v);
if ($i === false) { // false == cache miss
......
......@@ -81,7 +81,12 @@ class MoreMenu extends Menu
}
foreach ($toShow as $item) {
list($actionName, $args, $label, $description, $id) = $item;
if (count($item) == 5) {
list($actionName, $args, $label, $description, $id) = $item;
} else {
list($actionName, $args, $label, $description) = $item;
$id = null;
}
$this->item($actionName, $args, $label, $description, $id);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment