Merge "rdbms: add getChronologyProtectorClientId() to ILBFactory"
[lhc/web/wiklou.git] / includes / libs / rdbms / lbfactory / LBFactory.php
index 4ea2eb9..b4d260f 100644 (file)
@@ -674,6 +674,10 @@ abstract class LBFactory implements ILBFactory {
                return strpos( $url, '?' ) === false ? "$url?cpPosIndex=$index" : "$url&cpPosIndex=$index";
        }
 
+       public function getChronologyProtectorClientId() {
+               return $this->getChronologyProtector()->getClientId();
+       }
+
        /**
         * @param int $index Write index
         * @param int $time UNIX timestamp; can be used to detect stale cookies (T190082)