示例#1
0
文件: Place.php 项目: k-hasan-19/wiki
/**
 * Callback function to propagate data
 * @return bool must return true or other hooks don't get called
 */
function propagatePlaceEdit(&$article, &$user, &$text, &$summary, $minor, $dummy1, $dummy2, &$flags)
{
    $ns = $article->getTitle()->getNamespace();
    if ($ns == NS_PLACE) {
        $place = new Place($article->getTitle()->getText());
        $place->propagateEdit($text, $article);
    }
    return true;
}