<?php
-
/**
- * Created on May 14, 2010
- *
* API for MediaWiki 1.17+
*
+ * Created on May 14, 2010
+ *
* Copyright © 2010 Sam Reed
* Copyright © 2006 Yuri Astrakhan <Firstname><Lastname>@gmail.com
*
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
+ *
+ * @file
*/
if ( !defined( 'MEDIAWIKI' ) ) {
$res = $this->select( __METHOD__ );
$count = 0;
- $db = $this->getDB();
foreach ( $res as $row ) {
if ( ++$count > $params['limit'] ) {
// We've reached the one extra which shows that
}
}
+ public function getCacheMode( $params ) {
+ return 'public';
+ }
+
public function getAllowedParams() {
return array(
'url' => null,
public function getVersion() {
return __CLASS__ . ': $Id$';
}
-}
\ No newline at end of file
+}