function oEditedPagesPath() { global $goApp, $webyep_bOtherLoginsMayEditGlobalData; $oPath = od_nil; if ((int) $goApp->sFormFieldValue(WY_QK_EDITOR_GLOBAL) == 0 || $webyep_bOtherLoginsMayEditGlobalData || $goApp->bMainUser()) { $iPageID = (int) $goApp->sFormFieldValue(WY_QK_PAGEID); if ($iPageID) { $oPath = WYDocument::oPathForDocumentWithID($iPageID); } } return od_clone($oPath); }