headley-hfFO4poyKT6Ypkr5+xe8Uw(a)public.gmane.org a écrit :
Just sending this back to the list, since I didn't
get a response earlier.
Anyone have any ideas on how I can check to see if a specific article
exists that isn't the currecnt article? I want to change the class used
in the link, and possibly send them directly to the edit page.
the hard way (I'm sure a more elegant and simpler solution exists) :
$articlename = Title::newFromText("namespace:titleofarticle");
if($articlename->exists()){
echo "it does exist";
}
else{
echo "it does not exist";
}