Procházet zdrojové kódy

Minor - adding static in some functions

Julio Montoya před 12 roky
rodič
revize
38096c7ceb

+ 2 - 2
main/inc/lib/fckeditor/fckeditor.php

@@ -176,7 +176,7 @@ class FCKeditor
 
         $HtmlValue = htmlspecialchars( $this->Value ) ;
         $Html = '' ;
-        if ( $this->IsCompatible() ) {
+        if ( FCKeditor::IsCompatible() ) {
             if ( api_get_setting('server_type') == 'test' )
                 $File = 'fckeditor.original.html' ;
             else
@@ -216,7 +216,7 @@ class FCKeditor
      *
      * @return boolean
      */
-    public function IsCompatible()
+    public static function IsCompatible()
     {
         return FCKeditor_IsCompatibleBrowser() ;
     }

+ 1 - 1
main/inc/lib/formvalidator/Element/datepicker.php

@@ -72,7 +72,7 @@ class HTML_QuickForm_datepicker extends HTML_QuickForm_date
 	 * Export the date value in MySQL format
 	 * @return string YYYY-MM-DD HH:II:SS
 	 */
-	function exportValue()
+	function exportValue(&$submitValues, $assoc = false)
 	{
 		$values = parent::getValue();
 		$y = $values['Y'][0];

+ 1 - 1
main/inc/lib/pear/HTML/QuickForm.php

@@ -1356,7 +1356,7 @@ class HTML_QuickForm extends HTML_Common
      * @access    public
      * @return    boolean
      */
-    function isTypeRegistered($type)
+    static function isTypeRegistered($type)
     {
         return isset($GLOBALS['HTML_QUICKFORM_ELEMENT_TYPES'][strtolower($type)]);
     } // end func isTypeRegistered