* Removed experimental Amethyst skin from default set
* Upgrade old skin preferences properly at Special:Preferences
(used to spontaneously switch to Classic skin for old numeric pref records)
+* (bug 3424) Update page_touched for category members on category page creation
=== Caveats ===
'pl_namespace' => $this->getNamespace(),
'pl_title' => $this->getDbKey() ),
$fname );
- if ( 0 == $dbw->numRows( $res ) ) {
- return;
- }
$toucharr = array();
while( $row = $dbw->fetchObject( $res ) ) {
$toucharr[] = $row->pl_from;
}
+ $dbw->freeResult( $res );
+
+ if( $this->getNamespace() == NS_CATEGORY ) {
+ // Categories show up in a separate set of links as well
+ $res = $dbw->select( 'categorylinks',
+ array( 'cl_from' ),
+ array( 'cl_to' => $this->getDbKey() ),
+ $fname );
+ while( $row = $dbw->fetchObject( $res ) ) {
+ $toucharr[] = $row->cl_from;
+ }
+ $dbw->freeResult( $res );
+ }
+
if (!count($toucharr))
return;
$dbw->update( 'page', /* SET */ array( 'page_touched' => $dbw->timestamp() ),